Class Binding


  • public class Binding
    extends RuleElement
    Class used to store a binding of a named variable to a value of some given type
    • Constructor Detail

      • Binding

        public Binding​(Rule rule,
                       java.lang.String name)
      • Binding

        public Binding​(Rule rule,
                       java.lang.String name,
                       Type type)
      • Binding

        public Binding​(Rule rule,
                       java.lang.String name,
                       Type type,
                       Expression value)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getIVarName

        public java.lang.String getIVarName()
      • getType

        public Type getType()
      • setType

        public void setType​(Type type)
      • 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

        public java.lang.String getDescriptor()
      • setDescriptor

        public void setDescriptor​(java.lang.String desc)
      • 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

        public void writeTo​(java.io.StringWriter stringWriter)
        Specified by:
        writeTo in class RuleElement
      • aliasTo

        public void aliasTo​(Binding alias)
      • isAlias

        public boolean isAlias()
      • getAlias

        public Binding getAlias()