gnu.expr

Class AccessExp

Implemented Interfaces:
org.xml.sax.Locator, Named, Printable, SourceLocator
Known Direct 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

NEXT_AVAIL_FLAG, flags, noExpressions

Method Summary

Declaration
contextDecl()
Declaration
getBinding()
If non-null, the local Declaration this refers to.
String
getName()
String
getSimpleName()
Return a simple name, or null if the name has a non-empty namespace.
Object
getSymbol()
void
setBinding(Declaration decl)
void
setContextDecl(Declaration decl)
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

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, numArgs, set0, set1, setN, setSetter, setSourceLocation, toString

Methods inherited from class gnu.mapping.PropertySet

getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol

Method Details

contextDecl

public final Declaration contextDecl()

getBinding

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

getName

public final String getName()
Specified by:
getName in interface Named
Overrides:
getName in interface PropertySet

getSimpleName

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

getSymbol

public final Object getSymbol()
Specified by:
getSymbol in interface Named
Overrides:
getSymbol in interface PropertySet

setBinding

public final void setBinding(Declaration decl)

setContextDecl

public final void setContextDecl(Declaration decl)

string_name

public String string_name()