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()
StaticSlotgetName in interface StaticSlot<JSType>public Node getNode()
StaticReferencegetNode in interface StaticReference<JSType>public StaticSourceFile getSourceFile()
StaticReferencegetSourceFile in interface StaticReference<JSType>public Property getSymbol()
StaticReferencegetSymbol in interface StaticReference<JSType>public Property getDeclaration()
StaticSlotgetDeclaration in interface StaticSlot<JSType>public JSType getType()
StaticSlotgetType in interface StaticSlot<JSType>null if no type is declared for it.public boolean isTypeInferred()
StaticSlotisTypeInferred in interface StaticSlot<JSType>public JSDocInfo getJSDocInfo()
StaticSlotgetJSDocInfo in interface StaticSlot<JSType>public void setNode(Node n)
Copyright © 2009-2014 Google. All Rights Reserved.