public final class Property extends java.lang.Object implements java.io.Serializable, StaticTypedSlot<JSType>, StaticTypedRef<JSType>
| Modifier and Type | Method and Description |
|---|---|
Property |
getDeclaration()
Gets the declaration of this symbol.
|
JSDocInfo |
getJSDocInfo()
Gets the JSDoc for this slot.
|
java.lang.String |
getName()
Gets the name of the slot.
|
Node |
getNode()
The node where the reference lives.
|
StaticTypedScope<JSType> |
getScope() |
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.
|
int |
hashCode() |
boolean |
isTypeInferred()
Returns whether the type has been inferred (as opposed to declared).
|
void |
setNode(Node n) |
java.lang.String |
toString() |
public java.lang.String getName()
StaticSlotgetName in interface StaticSlotpublic Node getNode()
StaticRefpublic StaticSourceFile getSourceFile()
StaticRefgetSourceFile in interface StaticRefpublic Property getSymbol()
StaticTypedRefgetSymbol in interface StaticTypedRef<JSType>getSymbol in interface StaticRefpublic Property getDeclaration()
StaticTypedSlotgetDeclaration in interface StaticTypedSlot<JSType>getDeclaration in interface StaticSlotpublic JSType getType()
StaticTypedSlotgetType in interface StaticTypedSlot<JSType>null if no type is declared for it.public boolean isTypeInferred()
StaticTypedSlotisTypeInferred in interface StaticTypedSlot<JSType>public JSDocInfo getJSDocInfo()
StaticSlotgetJSDocInfo in interface StaticSlotpublic void setNode(Node n)
public java.lang.String toString()
toString in class java.lang.Objectpublic StaticTypedScope<JSType> getScope()
getScope in interface StaticTypedSlot<JSType>getScope in interface StaticSlotpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2009-2018 Google. All Rights Reserved.