Package org.jboss.byteman.rule.binding
Class Binding
java.lang.Object
org.jboss.byteman.rule.RuleElement
org.jboss.byteman.rule.binding.Binding
Class used to store a binding of a named variable to a value of some given type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Bindingprivate static final intprivate intprivate String(package private) booleanprivate static final intprivate intprivate static final intprivate static final intprivate intprivate Stringprivate static final intprivate static final intprivate static final intprivate static final intprivate Type(package private) booleanprivate ExpressionFields inherited from class org.jboss.byteman.rule.RuleElement
rule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcompile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) getAlias()intintgetIndex()intgetName()getType()getValue()interpret(HelperAdapter helper) booleanisAlias()booleanbooleanisHelper()booleanbooleanbooleanbooleanisParam()booleanbooleanbooleanbooleanisReturn()booleanbooleanbooleanbooleanrecord that this binding occurs on the LHS of an assignmentprivate voidresolveUnknownAgainstDerived(Type derived) voidsetCallArrayIndex(int callArrayIndex) voidsetDescriptor(String desc) voidsetLocalIndex(int localIndex) voidvoidrecord that this binding occurs on the LHS of an assignmentsetValue(Expression value) voidwriteTo(StringWriter stringWriter) Methods inherited from class org.jboss.byteman.rule.RuleElement
getBindings, getTypeGroup, rebox, toString
-
Field Details
-
HELPER
private static final int HELPER- See Also:
-
BIND_VAR
private static final int BIND_VAR- See Also:
-
LOCAL_VAR
private static final int LOCAL_VAR- See Also:
-
RETURN_VAR
private static final int RETURN_VAR- See Also:
-
THROWABLE_VAR
private static final int THROWABLE_VAR- See Also:
-
PARAM_COUNT_VAR
private static final int PARAM_COUNT_VAR- See Also:
-
PARAM_ARRAY_VAR
private static final int PARAM_ARRAY_VAR- See Also:
-
INVOKE_PARAM_ARRAY_VAR
private static final int INVOKE_PARAM_ARRAY_VAR- See Also:
-
name
-
descriptor
-
type
-
value
-
index
private int index -
callArrayIndex
private int callArrayIndex -
localIndex
private int localIndex -
alias
-
updated
boolean updated -
doCheckCast
boolean doCheckCast
-
-
Constructor Details
-
Binding
-
Binding
-
Binding
-
-
Method Details
-
typeCheck
- Specified by:
typeCheckin classRuleElement- Throws:
TypeException
-
resolveUnknownAgainstDerived
- Throws:
TypeException
-
interpret
- Specified by:
interpretin classRuleElement- Throws:
ExecuteException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException - Specified by:
compilein classRuleElement- Throws:
CompileException
-
getName
-
getIVarName
-
getValue
-
setValue
-
getType
-
setType
-
getCallArrayIndex
public int getCallArrayIndex() -
setCallArrayIndex
public void setCallArrayIndex(int callArrayIndex) -
getLocalIndex
public int getLocalIndex() -
setLocalIndex
public void setLocalIndex(int localIndex) -
isParam
public boolean isParam() -
isRecipient
public boolean isRecipient() -
isHelper
public boolean isHelper() -
isBindVar
public boolean isBindVar() -
isLocalVar
public boolean isLocalVar() -
isReturn
public boolean isReturn() -
isThrowable
public boolean isThrowable() -
isParamCount
public boolean isParamCount() -
isParamArray
public boolean isParamArray() -
isInvokeParamArray
public boolean isInvokeParamArray() -
isTriggerClass
public boolean isTriggerClass() -
isTriggerMethod
public boolean isTriggerMethod() -
isNewClass
public boolean isNewClass() -
getIndex
public int getIndex() -
getDescriptor
-
setDescriptor
-
setUpdated
public void setUpdated()record that this binding occurs on the LHS of an assignment -
isUpdated
public boolean isUpdated()record that this binding occurs on the LHS of an assignment- Returns:
- true if this binding occurs on the LHS
-
writeTo
- Specified by:
writeToin classRuleElement
-
aliasTo
-
isAlias
public boolean isAlias() -
getAlias
-