public class NName extends NNode
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
id |
| Constructor and Description |
|---|
NName(java.lang.String id) |
NName(java.lang.String id,
int start,
int end) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAttribute()
Returns
true if this name node is the attr child
(i.e. |
boolean |
isCall()
Returns
true if this name is structurally in a call position. |
NType |
resolve(Scope s)
Node should set the resolved type in its
NNode.type field
and also return it. |
java.lang.String |
toString() |
void |
visit(NNodeVisitor v)
Visits this node and optionally its children.
|
addChildren, addChildren, addError, addError, addType, addWarning, addWarning, bindNames, bindsName, end, getAstRoot, getDeepestNodeAtOffset, getEnclosingNamespace, getFile, getParent, getTable, getType, isClassDef, isFunctionDef, isLambda, isModule, isName, length, resolveExpr, resolveList, resolveListAsUnion, setEnd, setParent, setStart, setType, start, visitNode, visitNodeListpublic NName(java.lang.String id)
public NName(java.lang.String id,
int start,
int end)
public NType resolve(Scope s) throws java.lang.Exception
NNodeNNode.type field
and also return it.public boolean isCall()
true if this name is structurally in a call position.public boolean isAttribute()
true if this name node is the attr child
(i.e. the attribute being accessed) of an NAttribute node.public java.lang.String toString()
toString in class java.lang.Objectpublic void visit(NNodeVisitor v)
NNode