public class NameExpr extends Expression implements SymbolReference
| Constructor and Description |
|---|
NameExpr() |
NameExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name) |
NameExpr(String name) |
| Modifier and Type | Method and Description |
|---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
NameExpr |
clone() |
List<Node> |
getChildren() |
Map<String,List<SymbolDefinition>> |
getMethodDefinitions()
Gets the available methods
|
String |
getName() |
SymbolDefinition |
getSymbolDefinition() |
Map<String,SymbolDefinition> |
getTypeDefinitions()
Gets the available variables
|
Map<String,SymbolDefinition> |
getVariableDefinitions()
Gets the available variables
|
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setName(String name) |
void |
setSymbolDefinition(SymbolDefinition symbolDefinition) |
getSymbolData, setSymbolDatacheck, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic NameExpr()
public NameExpr(String name)
public NameExpr(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String name)
public boolean removeChild(Node child)
removeChild in class Nodepublic List<Node> getChildren()
getChildren in class Expressionpublic <R,A> R accept(GenericVisitor<R,A> v, A arg)
Nodepublic <A> void accept(VoidVisitor<A> v, A arg)
Nodepublic final String getName()
public final void setName(String name)
public SymbolDefinition getSymbolDefinition()
getSymbolDefinition in interface SymbolReferencepublic void setSymbolDefinition(SymbolDefinition symbolDefinition)
setSymbolDefinition in interface SymbolReferencepublic boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic NameExpr clone() throws CloneNotSupportedException
clone in class ExpressionCloneNotSupportedExceptionpublic Map<String,SymbolDefinition> getVariableDefinitions()
ScopeAwaregetVariableDefinitions in interface ScopeAwarepublic Map<String,List<SymbolDefinition>> getMethodDefinitions()
ScopeAwaregetMethodDefinitions in interface ScopeAwarepublic Map<String,SymbolDefinition> getTypeDefinitions()
ScopeAwaregetTypeDefinitions in interface ScopeAwareCopyright © 2018. All rights reserved.