public class Binding extends RuleElement
rule
Constructor | Description |
---|---|
Binding(Rule rule,
String name) |
|
Binding(Rule rule,
String name,
Type type) |
|
Binding(Rule rule,
String name,
Type type,
Expression value) |
Modifier and Type | Method | Description |
---|---|---|
void |
aliasTo(Binding alias) |
|
void |
compile(org.objectweb.asm.MethodVisitor mv,
CompileContext compileContext) |
|
Binding |
getAlias() |
|
int |
getCallArrayIndex() |
|
String |
getDescriptor() |
|
int |
getIndex() |
|
String |
getIVarName() |
|
int |
getLocalIndex() |
|
String |
getName() |
|
Type |
getType() |
|
Expression |
getValue() |
|
Object |
interpret(HelperAdapter helper) |
|
boolean |
isAlias() |
|
boolean |
isBindVar() |
|
boolean |
isHelper() |
|
boolean |
isInvokeParamArray() |
|
boolean |
isLocalVar() |
|
boolean |
isParam() |
|
boolean |
isParamArray() |
|
boolean |
isParamCount() |
|
boolean |
isRecipient() |
|
boolean |
isReturn() |
|
boolean |
isThrowable() |
|
boolean |
isTriggerClass() |
|
boolean |
isTriggerMethod() |
|
boolean |
isUpdated() |
record that this binding occurs on the LHS of an assignment
|
void |
setCallArrayIndex(int callArrayIndex) |
|
void |
setDescriptor(String desc) |
|
void |
setLocalIndex(int localIndex) |
|
void |
setType(Type type) |
|
void |
setUpdated() |
record that this binding occurs on the LHS of an assignment
|
Expression |
setValue(Expression value) |
|
Type |
typeCheck(Type expected) |
|
void |
writeTo(StringWriter stringWriter) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBindings, getTypeGroup, rebox, toString
public Binding(Rule rule, String name, Type type, Expression value)
public Type typeCheck(Type expected) throws TypeException
typeCheck
in class RuleElement
TypeException
public Object interpret(HelperAdapter helper) throws ExecuteException
interpret
in class RuleElement
ExecuteException
public void compile(org.objectweb.asm.MethodVisitor mv, CompileContext compileContext) throws CompileException
compile
in class RuleElement
CompileException
public String getName()
public String getIVarName()
public Expression getValue()
public Expression setValue(Expression value)
public Type getType()
public void setType(Type type)
public int getCallArrayIndex()
public void setCallArrayIndex(int callArrayIndex)
public int getLocalIndex()
public void setLocalIndex(int localIndex)
public boolean isParam()
public boolean isRecipient()
public boolean isHelper()
public boolean isBindVar()
public boolean isLocalVar()
public boolean isReturn()
public boolean isThrowable()
public boolean isParamCount()
public boolean isParamArray()
public boolean isInvokeParamArray()
public boolean isTriggerClass()
public boolean isTriggerMethod()
public int getIndex()
public String getDescriptor()
public void setDescriptor(String desc)
public void setUpdated()
public boolean isUpdated()
public void writeTo(StringWriter stringWriter)
writeTo
in class RuleElement
public void aliasTo(Binding alias)
public boolean isAlias()
public Binding getAlias()
Copyright © 2018. All rights reserved.