public final class Property extends Object implements 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.
|
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) |
String |
toString() |
public String getName()
StaticSlot
getName
in interface StaticSlot
public Node getNode()
StaticRef
public StaticSourceFile getSourceFile()
StaticRef
getSourceFile
in interface StaticRef
public Property getSymbol()
StaticTypedRef
getSymbol
in interface StaticTypedRef<JSType>
getSymbol
in interface StaticRef
public Property getDeclaration()
StaticTypedSlot
getDeclaration
in interface StaticTypedSlot<JSType>
getDeclaration
in interface StaticSlot
public JSType getType()
StaticTypedSlot
getType
in interface StaticTypedSlot<JSType>
null
if no type is declared for it.public boolean isTypeInferred()
StaticTypedSlot
isTypeInferred
in interface StaticTypedSlot<JSType>
public JSDocInfo getJSDocInfo()
StaticSlot
getJSDocInfo
in interface StaticSlot
public void setNode(Node n)
Copyright © 2009–2023 Google. All rights reserved.