gnu.expr
Class AccessExp

java.lang.Object
  extended by gnu.mapping.Procedure
      extended by gnu.mapping.Procedure0
          extended by gnu.expr.Expression
              extended by gnu.expr.AccessExp
All Implemented Interfaces:
Named, Printable
Direct Known Subclasses:
ReferenceExp, SetExp

public abstract class AccessExp
extends Expression

A common super-type for ReferenceExpa and SetExp. Contains shared information about the variable that is accessed.


Field Summary
 
Fields inherited from class gnu.expr.Expression
flags, NEXT_AVAIL_FLAG, noExpressions
 
Constructor Summary
AccessExp()
           
 
Method Summary
 Declaration contextDecl()
           
 Declaration getBinding()
          If non-null, the local Declaration this refers to.
 java.lang.String getName()
           
 java.lang.Object getSymbol()
           
 void setBinding(Declaration decl)
           
 void setContextDecl(Declaration decl)
           
 java.lang.String string_name()
           
 
Methods inherited from class gnu.expr.Expression
apply, apply0, compile, compile, compileButFirst, 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
 
Methods inherited from class gnu.mapping.Procedure0
apply1, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getProperty, getSetter, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessExp

public AccessExp()
Method Detail

string_name

public java.lang.String string_name()

getName

public final java.lang.String getName()
Specified by:
getName in interface Named
Overrides:
getName in class Procedure

getSymbol

public final java.lang.Object getSymbol()
Specified by:
getSymbol in interface Named
Overrides:
getSymbol in class Procedure

getBinding

public final Declaration getBinding()
If non-null, the local Declaration this refers to.


setBinding

public final void setBinding(Declaration decl)

contextDecl

public final Declaration contextDecl()

setContextDecl

public final void setContextDecl(Declaration decl)