public final class Reference extends java.lang.Object implements StaticRef, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
InputId |
getInputId() |
Node |
getNode()
The node where the reference lives.
|
StaticSourceFile |
getSourceFile()
The source file where the reference lives.
|
Var |
getSymbol()
The variable that this reference points to.
|
boolean |
isConstDeclaration() |
boolean |
isInitializingDeclaration()
Determines whether the variable is initialized at the declaration.
|
boolean |
isLvalue()
Returns whether the name node for this reference is an lvalue.
|
boolean |
isSimpleAssignmentToName() |
boolean |
isVarDeclaration() |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic Var getSymbol()
StaticRefpublic Node getNode()
StaticRefpublic InputId getInputId()
public StaticSourceFile getSourceFile()
StaticRefgetSourceFile in interface StaticRefpublic boolean isVarDeclaration()
public boolean isConstDeclaration()
public boolean isInitializingDeclaration()
public boolean isSimpleAssignmentToName()
public boolean isLvalue()
Copyright © 2009-2019 Google. All Rights Reserved.