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 Binding
private static final int
private int
private String
(package private) boolean
private static final int
private int
private static final int
private static final int
private int
private String
private static final int
private static final int
private static final int
private static final int
private Type
(package private) boolean
private Expression
Fields inherited from class org.jboss.byteman.rule.RuleElement
rule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
compile
(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) getAlias()
int
int
getIndex()
int
getName()
getType()
getValue()
interpret
(HelperAdapter helper) boolean
isAlias()
boolean
boolean
isHelper()
boolean
boolean
boolean
boolean
isParam()
boolean
boolean
boolean
boolean
isReturn()
boolean
boolean
boolean
boolean
record that this binding occurs on the LHS of an assignmentprivate void
resolveUnknownAgainstDerived
(Type derived) void
setCallArrayIndex
(int callArrayIndex) void
setDescriptor
(String desc) void
setLocalIndex
(int localIndex) void
void
record that this binding occurs on the LHS of an assignmentsetValue
(Expression value) void
writeTo
(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:
typeCheck
in classRuleElement
- Throws:
TypeException
-
resolveUnknownAgainstDerived
- Throws:
TypeException
-
interpret
- Specified by:
interpret
in classRuleElement
- Throws:
ExecuteException
-
compile
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException - Specified by:
compile
in 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:
writeTo
in classRuleElement
-
aliasTo
-
isAlias
public boolean isAlias() -
getAlias
-