public final class Property extends java.lang.Object implements java.io.Serializable, StaticTypedSlot, StaticTypedRef
| Modifier and Type | Class and Description |
|---|---|
static class |
Property.OwnedProperty
A property instance associated with particular owner type.
|
| 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 |
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 StaticTypedRefgetSymbol in interface StaticRefpublic Property getDeclaration()
StaticTypedSlotgetDeclaration in interface StaticTypedSlotgetDeclaration in interface StaticSlotpublic JSType getType()
StaticTypedSlotgetType in interface StaticTypedSlotnull if no type is declared for it.public boolean isTypeInferred()
StaticTypedSlotisTypeInferred in interface StaticTypedSlotpublic JSDocInfo getJSDocInfo()
StaticSlotgetJSDocInfo in interface StaticSlotpublic void setNode(Node n)
public java.lang.String toString()
toString in class java.lang.Objectpublic StaticTypedScope getScope()
getScope in interface StaticTypedSlotgetScope in interface StaticSlotpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2009-2019 Google. All Rights Reserved.