public final class Property extends Object implements Serializable, StaticSlot<JSType>, StaticReference<JSType>
Modifier and Type | Method and Description |
---|---|
Property |
getDeclaration()
Gets the declaration of this symbol.
|
JSDocInfo |
getJSDocInfo()
Gets the JSDoc for this slot.
|
String |
getName()
Gets the name of the slot.
|
Node |
getNode()
The node where the reference lives.
|
StaticSourceFile |
getSourceFile()
The source file where the reference lives.
|
Property |
getSymbol()
The variable that this reference points to.
|
JSType |
getType()
Returns the type information, if any, for this slot.
|
boolean |
isTypeInferred()
Returns whether the type has been inferred (as opposed to declared).
|
void |
setNode(Node n) |
public String getName()
StaticSlot
getName
in interface StaticSlot<JSType>
public Node getNode()
StaticReference
getNode
in interface StaticReference<JSType>
public StaticSourceFile getSourceFile()
StaticReference
getSourceFile
in interface StaticReference<JSType>
public Property getSymbol()
StaticReference
getSymbol
in interface StaticReference<JSType>
public Property getDeclaration()
StaticSlot
getDeclaration
in interface StaticSlot<JSType>
public JSType getType()
StaticSlot
getType
in interface StaticSlot<JSType>
null
if no type is declared for it.public boolean isTypeInferred()
StaticSlot
isTypeInferred
in interface StaticSlot<JSType>
public JSDocInfo getJSDocInfo()
StaticSlot
getJSDocInfo
in interface StaticSlot<JSType>
public void setNode(Node n)
Copyright © 2009–2016 Google. All rights reserved.