Uses of Class
org.jboss.byteman.rule.type.Type
-
Packages that use Type Package Description org.jboss.byteman.rule org.jboss.byteman.rule.binding org.jboss.byteman.rule.compiler org.jboss.byteman.rule.expression org.jboss.byteman.rule.type -
-
Uses of Type in org.jboss.byteman.rule
Fields in org.jboss.byteman.rule declared as Type Modifier and Type Field Description private Type
Rule. returnType
return type of the rule's trigger methodMethods in org.jboss.byteman.rule that return Type Modifier and Type Method Description private Type
Event. getBindingType(ParseNode typeTree)
create and return a type for a binding or return null if the type cannot be createdType
Rule. getReturnType()
Type
Action. typeCheck(Type expected)
Type
Condition. typeCheck(Type expected)
Type
Event. typeCheck(Type expected)
abstract Type
RuleElement. typeCheck(Type expected)
Methods in org.jboss.byteman.rule with parameters of type Type Modifier and Type Method Description protected java.lang.Object
RuleElement. rebox(Type fromType, Type toType, java.lang.Object value)
boolean
Rule. requiresAccess(Type type)
Type
Action. typeCheck(Type expected)
Type
Condition. typeCheck(Type expected)
Type
Event. typeCheck(Type expected)
abstract Type
RuleElement. typeCheck(Type expected)
-
Uses of Type in org.jboss.byteman.rule.binding
Fields in org.jboss.byteman.rule.binding declared as Type Modifier and Type Field Description private Type
Binding. type
Methods in org.jboss.byteman.rule.binding that return Type Modifier and Type Method Description Type
Binding. getType()
Type
Binding. typeCheck(Type expected)
Methods in org.jboss.byteman.rule.binding with parameters of type Type Modifier and Type Method Description private void
Binding. resolveUnknownAgainstDerived(Type derived)
void
Binding. setType(Type type)
Type
Binding. typeCheck(Type expected)
Constructors in org.jboss.byteman.rule.binding with parameters of type Type Constructor Description Binding(Rule rule, java.lang.String name, Type type)
Binding(Rule rule, java.lang.String name, Type type, Expression value)
-
Uses of Type in org.jboss.byteman.rule.compiler
Methods in org.jboss.byteman.rule.compiler with parameters of type Type Modifier and Type Method Description void
CompileContext. compileBooleanConversion(Type fromType, Type toType)
void
CompileContext. compileBox(Type toType)
box a value belonging to a primitive typevoid
CompileContext. compileCheckCast(Type toType)
void
CompileContext. compileNumericConversion(Type fromType, Type toType)
void
CompileContext. compileObjectConversion(Type fromType, Type toType)
void
CompileContext. compilePrimitiveConversion(Type fromType, Type toType)
compile code to convert a numeric or character primitive to a numeric or character primitivevoid
CompileContext. compileStringConversion(Type fromType, Type toType)
void
CompileContext. compileTypeConversion(Type fromType, Type toType)
void
CompileContext. compileUnbox(Type fromType, Type toType)
compile code to convert a value of a boxed type to a primitive type, possibly not the immediately related primitive type -
Uses of Type in org.jboss.byteman.rule.expression
Fields in org.jboss.byteman.rule.expression declared as Type Modifier and Type Field Description private Type
ComparisonExpression. comparisonType
private Type
ClassLiteralExpression. ownerType
private Type
FieldExpression. ownerType
private Type
StaticExpression. ownerType
private Type
MethodExpression. rootType
protected Type
Expression. type
Fields in org.jboss.byteman.rule.expression with type parameters of type Type Modifier and Type Field Description private java.util.List<Type>
MethodExpression. argumentTypes
private java.util.List<Type>
NewExpression. argumentTypes
private java.util.List<Type>
ThrowExpression. argumentTypes
private java.util.List<Type>
MethodExpression. paramTypes
private java.util.List<Type>
NewExpression. paramTypes
private java.util.List<Type>
ThrowExpression. paramTypes
Methods in org.jboss.byteman.rule.expression that return Type Modifier and Type Method Description Type
Expression. getType()
Type
ArithmeticExpression. typeCheck(Type expected)
Type
ArrayExpression. typeCheck(Type expected)
Type
ArrayInitExpression. typeCheck(Type expected)
Type
AssignExpression. typeCheck(Type expected)
Type
BitExpression. typeCheck(Type expected)
Type
BooleanLiteral. typeCheck(Type expected)
Type
ClassLiteralExpression. typeCheck(Type expected)
Type
ComparisonExpression. typeCheck(Type expected)
Type
ConditionalEvalExpression. typeCheck(Type expected)
Type
DollarExpression. typeCheck(Type expected)
abstract Type
Expression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
FieldExpression. typeCheck(Type expected)
Type
InstanceOfExpression. typeCheck(Type expected)
Type
LogicalExpression. typeCheck(Type expected)
Type
MethodExpression. typeCheck(Type expected)
Type
MinusExpression. typeCheck(Type expected)
Type
NewExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
NotExpression. typeCheck(Type expected)
Type
NullLiteral. typeCheck(Type expected)
Type
NumericLiteral. typeCheck(Type expected)
Type
PlusExpression. typeCheck(Type expected)
Type
ReturnExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
ShiftExpression. typeCheck(Type expected)
Type
StaticExpression. typeCheck(Type expected)
Type
StringLiteral. typeCheck(Type expected)
Type
StringPlusExpression. typeCheck(Type expected)
Type
ThrowExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
TwiddleExpression. typeCheck(Type expected)
Type
Variable. typeCheck(Type expected)
Type
ArrayExpression. typeCheckAssign(Type expected)
abstract Type
AssignableExpression. typeCheckAssign(Type expected)
typecheck the expression as an lvalue of an assignment operationType
DollarExpression. typeCheckAssign(Type expected)
Type
FieldExpression. typeCheckAssign(Type expected)
Type
StaticExpression. typeCheckAssign(Type expected)
Type
Variable. typeCheckAssign(Type expected)
Methods in org.jboss.byteman.rule.expression with parameters of type Type Modifier and Type Method Description java.lang.reflect.Method
MethodExpression. bestMatchCandidate(java.util.List<java.lang.reflect.Method> candidates, Type expected)
return the method whose signature is the best fit for the call argument types.static ArrayInitExpression
ExpressionHelper. createArrayInitExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static AssignableExpression
ExpressionHelper. createAssignableExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static Expression
ExpressionHelper. createBinaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static Expression
ExpressionHelper. createCallExpression(Rule rule, Bindings bindings, ParseNode selectorTree, ParseNode recipientTree, ParseNode argTree, Type type)
static ClassLiteralExpression
ExpressionHelper. createClassLiteralExpression(Rule rule, Bindings bindings, ParseNode pathTree, Type type)
static Expression
ExpressionHelper. createExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static java.util.List<Expression>
ExpressionHelper. createExpressionList(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static AssignableExpression
ExpressionHelper. createFieldExpression(Rule rule, Bindings bindings, ParseNode fieldTree, ParseNode targetTree, Type type)
static Expression
ExpressionHelper. createTernaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
static Expression
ExpressionHelper. createUnaryExpression(Rule rule, Bindings bindings, ParseNode exprTree, Type type)
private void
MethodExpression. findMethod(boolean publicOnly, Type expected)
find a method to resolve this method call expression.Type
ArithmeticExpression. typeCheck(Type expected)
Type
ArrayExpression. typeCheck(Type expected)
Type
ArrayInitExpression. typeCheck(Type expected)
Type
AssignExpression. typeCheck(Type expected)
Type
BitExpression. typeCheck(Type expected)
Type
BooleanLiteral. typeCheck(Type expected)
Type
ClassLiteralExpression. typeCheck(Type expected)
Type
ComparisonExpression. typeCheck(Type expected)
Type
ConditionalEvalExpression. typeCheck(Type expected)
Type
DollarExpression. typeCheck(Type expected)
abstract Type
Expression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
FieldExpression. typeCheck(Type expected)
Type
InstanceOfExpression. typeCheck(Type expected)
Type
LogicalExpression. typeCheck(Type expected)
Type
MethodExpression. typeCheck(Type expected)
Type
MinusExpression. typeCheck(Type expected)
Type
NewExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
NotExpression. typeCheck(Type expected)
Type
NullLiteral. typeCheck(Type expected)
Type
NumericLiteral. typeCheck(Type expected)
Type
PlusExpression. typeCheck(Type expected)
Type
ReturnExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
ShiftExpression. typeCheck(Type expected)
Type
StaticExpression. typeCheck(Type expected)
Type
StringLiteral. typeCheck(Type expected)
Type
StringPlusExpression. typeCheck(Type expected)
Type
ThrowExpression. typeCheck(Type expected)
ensure that all type references in the expression and its component expressions can be resolved, that the type of the expression is well-defined and that it is compatible with the type expected in the context in which it occurs.Type
TwiddleExpression. typeCheck(Type expected)
Type
Variable. typeCheck(Type expected)
Type
ArrayExpression. typeCheckAssign(Type expected)
abstract Type
AssignableExpression. typeCheckAssign(Type expected)
typecheck the expression as an lvalue of an assignment operationType
DollarExpression. typeCheckAssign(Type expected)
Type
FieldExpression. typeCheckAssign(Type expected)
Type
StaticExpression. typeCheckAssign(Type expected)
Type
Variable. typeCheckAssign(Type expected)
Constructors in org.jboss.byteman.rule.expression with parameters of type Type Constructor Description ArrayExpression(Rule rule, Type type, ParseNode token, Expression arrayRef, java.util.List<Expression> idxList)
ArrayInitExpression(Rule rule, Type type, ParseNode token, java.util.List<Expression> elements)
AssignableExpression(Rule rule, Type type, ParseNode token)
Create a new expression.BinaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand1, Expression operand2)
ClassLiteralExpression(Rule rule, Type type, ParseNode pathTree, java.lang.String[] pathList)
ConditionalEvalExpression(Rule rule, Type type, ParseNode token, Expression cond, Expression if_expr, Expression else_expr)
DollarExpression(Rule rule, Type type, ParseNode token, int index)
constructor for param bindings or special bindingsDollarExpression(Rule rule, Type type, ParseNode token, java.lang.String name)
constructor for local var bindingsExpression(Rule rule, Type type, ParseNode token)
Create a new expression.FieldExpression(Rule rule, Type type, ParseNode fieldTree, java.lang.String fieldName, Expression owner, java.lang.String[] pathList)
MethodExpression(Rule rule, Type type, ParseNode token, Expression recipient, java.util.List<Expression> arguments, java.lang.String[] pathList)
NumericLiteral(Rule rule, Type type, ParseNode token)
OperExpression(Rule rule, int oper, Type type, ParseNode token)
StaticExpression(Rule rule, Type type, ParseNode token, java.lang.String fieldName, java.lang.String ownerTypeName)
TernaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand1, Expression operand2, Expression operand3)
UnaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand)
Variable(Rule rule, Type type, ParseNode token)
Variable(Rule rule, Type type, ParseNode token, java.lang.String name)
-
Uses of Type in org.jboss.byteman.rule.type
Fields in org.jboss.byteman.rule.type declared as Type Modifier and Type Field Description private Type
Type. aliasFor
private Type
Type. arrayType
static Type
Type. B
private Type
Type. baseType
static Type
Type. BOOLEAN
static Type
Type. BYTE
static Type
Type. C
static Type
Type. CHARACTER
static Type
Type. D
static Type
Type. DOUBLE
static Type
Type. F
static Type
Type. FLOAT
static Type
Type. I
static Type
Type. INTEGER
static Type
Type. J
static Type
Type. LONG
static Type
Type. N
static Type
Type. NUMBER
static Type
Type. OBJECT
static Type
Type. S
static Type
Type. SHORT
static Type
Type. STRING
static Type
Type. UNDEFINED
static Type
Type. VOID
static Type
Type. Z
Fields in org.jboss.byteman.rule.type with type parameters of type Type Modifier and Type Field Description private static java.util.HashMap<Type,Type>
Type. boxedTypes
private static java.util.HashMap<Type,Type>
Type. boxedTypes
private static java.util.HashMap<java.lang.String,Type>
Type. builtinTypes
private java.util.List<Type>
TypeGroup. exceptionTypes
private static java.util.HashMap<java.lang.String,Type>
Type. primitiveTypes
protected java.util.HashMap<java.lang.String,Type>
TypeGroup. typeTable
Methods in org.jboss.byteman.rule.type that return Type Modifier and Type Method Description Type
Type. arrayType()
create an array type from this base typeType
Type. arrayType(java.lang.Class clazz)
create an array type from this base typestatic Type
Type. boxType(java.lang.Class clazz)
return the primitive type whose boxed equivalent is associated with a given classstatic Type
Type. boxType(Type type)
return the primitive type for a boxed type or vice versastatic Type
Type. builtinType(java.lang.Class clazz)
return the builtin type associated with a given classType
TypeGroup. create(java.lang.String name)
create a type with a given name or return an existing type if the supplied name can be matched.Type
TypeGroup. create(java.lang.String name, java.lang.Class clazz)
create a type with a given name and class or return an existing type if the supplied name and class can be matched.Type
TypeGroup. createArray(Type baseType)
static Type
Type. dereference(Type target)
dereference an object type to the fully qualified named type to which it is aliased where such an alias has been found to exist or return the supplied type if no alias exists or the type is a non-objecttype or was originally specified using a fully qualified type name.Type
TypeGroup. ensureType(java.lang.Class clazz)
Type
Type. getBaseType()
retrieve the base type for an array type or null if this is not an array typeType
TypeGroup. lookup(java.lang.String name)
lookup a type by name dereferencing it to its fully qualified type if that existsType
TypeGroup. match(java.lang.String[] path)
static Type
Type. promote(Type type1, Type type2)
compute the type to which a binary arithmetic operator should promote its operands before combination based on the two operand types which is also the type to be used for the result of the operationMethods in org.jboss.byteman.rule.type that return types with arguments of type Type Modifier and Type Method Description java.util.List<Type>
TypeGroup. getExceptionTypes()
Methods in org.jboss.byteman.rule.type with parameters of type Type Modifier and Type Method Description boolean
Type. aliasTo(Type target)
attempt to establish an alias from an package unqualified named object type to a package qualified named object type whose unqualified name equals this type's namestatic Type
Type. boxType(Type type)
return the primitive type for a boxed type or vice versaprivate boolean
TypeGroup. checkAlias(Type type)
if the supplied type has a package qualified name ensure that any existing entry with the unqualified name is aliased to it or else add an entry with an unqualified name as an alias for it.Type
TypeGroup. createArray(Type baseType)
static Type
Type. dereference(Type target)
dereference an object type to the fully qualified named type to which it is aliased where such an alias has been found to exist or return the supplied type if no alias exists or the type is a non-objecttype or was originally specified using a fully qualified type name.boolean
Type. isAssignableFrom(Type type)
check whether this type can be assigned with values of the supplied type including the case where numeric conversion from known or unknown numeric types but excluding any other cases where this type is undefined n.b.static Type
Type. promote(Type type1, Type type2)
compute the type to which a binary arithmetic operator should promote its operands before combination based on the two operand types which is also the type to be used for the result of the operationConstructors in org.jboss.byteman.rule.type with parameters of type Type Constructor Description Type(java.lang.String typeName, java.lang.Class clazz, int flags, int nBytes, Type baseType)
-