Interface ISymbol

    • Field Detail

      • THIS

        static final String THIS
      • SUPER

        static final String SUPER
    • Method Detail

      • getDisplayName

        String getDisplayName()
        Returns the Symbol's optional display name. If a display name is not assigned, returns the symbol's name.
        Specified by:
        getDisplayName in interface IReducedSymbol
      • setType

        void setType​(IType type)
        Sets the Symbol's type.
      • getValue

        Object getValue()
        Returns the value assigned to this Symbol.
      • setValue

        void setValue​(Object value)
        Assigns a value to this Symbol.
      • setDefaultValueExpression

        void setDefaultValueExpression​(IExpression defaultValue)
      • setDynamicSymbolTable

        void setDynamicSymbolTable​(ISymbolTable symTable)
        Assigns an optional symbol table so that the symbol can get/set its value dynamically e.g., via ThreadLocalSymbolTable.
      • hasDynamicSymbolTable

        boolean hasDynamicSymbolTable()
      • getDynamicSymbolTable

        ISymbolTable getDynamicSymbolTable()
      • getLightWeightReference

        ISymbol getLightWeightReference()
        Creates a copy of this symbol without the value so that the empty symbol can be stored.
      • isWritable

        boolean isWritable()
        Returns true if this symbol is writable.

        An example of a symbol that is not writable is a readonly Property referenced as a symbol in a Gosu class.

      • setValueIsBoxed

        void setValueIsBoxed​(boolean b)
        Indicates that this symbol should use a reference rather than storing its value directly.
      • canBeCaptured

        boolean canBeCaptured()
      • isLocal

        boolean isLocal()