gnu.expr
Class ReferenceExp
- Named, Printable
public class ReferenceExp
This class represents a variable reference (an identifier).
apply , apply0 , compile , compile , compileNotePosition , compileWithPosition , compileWithPosition , eval , eval , getColumn , getFile , getFlag , getFlags , getLine , getType , makeWhile , match0 , print , print , printLineColumn , setFile , setFlag , setFlag , setLine , setLine , setLine , setLine , walk , walkChildren |
apply , apply , apply0 , apply1 , apply2 , apply3 , apply4 , applyN , check0 , check1 , check2 , check3 , check4 , checkArgCount , checkN , getName , getProperty , getSetter , getSymbol , match0 , match1 , match2 , match3 , match4 , matchN , maxArgs , minArgs , name , numArgs , removeProperty , set0 , set1 , setN , setName , setProperty , setProperty , setSetter , setSymbol , toString |
CREATE_FIELD_REFERENCE
public static final int CREATE_FIELD_REFERENCE
Create a FieldLocation referencing the binding.
DONT_DEREFERENCE
public static final int DONT_DEREFERENCE
PREFER_BINDING2
public static final int PREFER_BINDING2
PROCEDURE_NAME
public static final int PROCEDURE_NAME
ReferenceExp
public ReferenceExp(Object symbol)
ReferenceExp
public ReferenceExp(Object symbol,
Declaration binding)
getDontDereference
public final boolean getDontDereference()
getType
public Type getType()
Return the Type used to represent the values of this Expression.
- getType in interface Expression
isProcedureName
public final boolean isProcedureName()
True if this identifier appears in "function call position".
If so, it should be interpreted as a function name, which makes a
difference for languages (like Common Lisp) that have two name spaces.
setDontDereference
public final void setDontDereference(boolean setting)
setProcedureName
public final void setProcedureName(boolean setting)
Note if this identifier appears in "function call position".