|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHasMetadata
com.google.dart.compiler.backend.js.ast.JsNameRef
public final class JsNameRef
Represents a JavaScript expression that references a name.
Nested Class Summary | |
---|---|
protected static class |
JsExpressionImpl.JsExpressionHasArguments
|
Constructor Summary | |
---|---|
JsNameRef(JsName name)
|
|
JsNameRef(JsName name,
JsExpression qualifier)
|
|
JsNameRef(java.lang.String ident)
|
|
JsNameRef(java.lang.String ident,
JsExpression qualifier)
|
|
JsNameRef(java.lang.String ident,
java.lang.String qualifier)
|
Method Summary | ||
---|---|---|
void |
accept(JsVisitor v)
Causes this object to have the visitor visit itself and its children. |
|
void |
acceptChildren(JsVisitor visitor)
|
|
JsNameRef |
deepCopy()
|
|
java.lang.String |
getIdent()
|
|
JsName |
getName()
|
|
JsExpression |
getQualifier()
|
|
java.lang.Object |
getSource()
Return the source info associated with this object. |
|
Symbol |
getSymbol()
|
|
boolean |
isLeaf()
Determines whether or not this expression is a leaf, such as a JsNameRef , JsLiteral.JsBooleanLiteral , and so on. |
|
JsStatement |
makeStmt()
|
|
void |
resolve(JsName name)
|
|
void |
setQualifier(JsExpression qualifier)
|
|
void |
setSource(java.lang.Object info)
Set the source info associated with this object. |
|
JsExpression |
source(java.lang.Object info)
|
|
java.lang.String |
toString()
|
|
void |
traverse(JsVisitorWithContext v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children. |
|
protected
|
withMetadataFrom(T other)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.google.dart.compiler.backend.js.ast.JsNode |
---|
getSource, setSource |
Constructor Detail |
---|
public JsNameRef(@NotNull JsName name)
public JsNameRef(@NotNull java.lang.String ident)
public JsNameRef(@NotNull java.lang.String ident, JsExpression qualifier)
public JsNameRef(@NotNull java.lang.String ident, @NotNull java.lang.String qualifier)
public JsNameRef(@NotNull JsName name, JsExpression qualifier)
Method Detail |
---|
@NotNull public java.lang.String getIdent()
@Nullable public JsName getName()
getName
in interface HasName
@Nullable public Symbol getSymbol()
getSymbol
in interface HasSymbol
@Nullable public JsExpression getQualifier()
public boolean isLeaf()
JsNameRef
, JsLiteral.JsBooleanLiteral
, and so on. Leaf expressions
never need to be parenthesized.
isLeaf
in interface JsExpression
public void resolve(JsName name)
public void setQualifier(JsExpression qualifier)
public void accept(JsVisitor v)
JsNode
accept
in interface JsNode
v
- the visitor that should traverse this nodepublic void acceptChildren(JsVisitor visitor)
acceptChildren
in interface JsNode
public void traverse(JsVisitorWithContext v, JsContext ctx)
JsNode
traverse
in interface JsNode
v
- the visitor that should traverse this nodectx
- the context of an existing traversal@NotNull public JsNameRef deepCopy()
deepCopy
in interface JsExpression
deepCopy
in interface JsNode
@NotNull public JsStatement makeStmt()
makeStmt
in interface JsExpression
public JsExpression source(java.lang.Object info)
source
in interface JsExpression
source
in interface JsNode
public java.lang.Object getSource()
JsNode
public void setSource(java.lang.Object info)
JsNode
public java.lang.String toString()
protected <T extends HasMetadata> T withMetadataFrom(T other)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |