gnu.expr
Class AccessExp

java.lang.Object
  extended by gnu.mapping.PropertySet
      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, SourceLocator, org.xml.sax.Locator
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.String getSimpleName()
          Return a simple name, or null if the name has a non-empty namespace.
 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, compile, compileButFirst, compileNotePosition, compileWithPosition, compileWithPosition, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, getType, inline, isStableSourceLocation, makeWhile, match0, mustCompile, print, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, side_effects, toString, valueIfConstant, 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, getSetter, getSourceLocation, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation
 
Methods inherited from class gnu.mapping.PropertySet
getProperty, removeProperty, setName, setProperty, setProperty, setSymbol
 
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 PropertySet

getSimpleName

public final java.lang.String getSimpleName()
Return a simple name, or null if the name has a non-empty namespace.


getSymbol

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

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)