public class IdentifierExpr extends Expr implements IdentifierExpression
FieldAccessExpression
, ParameterAccessExpression
,
ThisExpression
or VariableAccessExpression
.
This class is not defined
abstract
to allow the syntactical analysis to
construct general nodes, which are replaced by the semantic analysis
with their specialized counterparts.Constructor and Description |
---|
IdentifierExpr()
The noarg constructor is needed for ANTLR support and deserialization.
|
IdentifierExpr(antlr.Token token)
The noarg constructor is needed for ANTLR support.
|
Modifier and Type | Method and Description |
---|---|
void |
arrive(NodeVisitor visitor)
Delegates to the argument
visitor . |
java.lang.String |
getName()
Returns the name of the specialized identifier.
|
java.lang.String |
getTypeName()
Returns the Java type name of the specialized identifier.
|
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument
visitor . |
clone, getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, toString, walkNextChild
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, walkNextChild
public IdentifierExpr()
setChildren
optionally.public IdentifierExpr(antlr.Token token)
setChildren
optionally.public java.lang.String getName()
getName
in interface IdentifierExpression
public java.lang.String getTypeName()
getTypeName
in interface IdentifierExpression
public void arrive(NodeVisitor visitor)
visitor
.public java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor
.Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.