Class Property
java.lang.Object
com.google.javascript.rhino.jstype.Property
- All Implemented Interfaces:
StaticReference<JSType>
,StaticSlot<JSType>
,Serializable
public final class Property
extends Object
implements Serializable, StaticSlot<JSType>, StaticReference<JSType>
A property slot of an object.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the declaration of this symbol.Gets the JSDoc for this slot.getName()
Gets the name of the slot.getNode()
The node where the reference lives.The source file where the reference lives.The variable that this reference points to.getType()
Returns the type information, if any, for this slot.boolean
Returns whether the type has been inferred (as opposed to declared).void
-
Method Details
-
getName
Description copied from interface:StaticSlot
Gets the name of the slot.- Specified by:
getName
in interfaceStaticSlot<JSType>
-
getNode
Description copied from interface:StaticReference
The node where the reference lives.- Specified by:
getNode
in interfaceStaticReference<JSType>
-
getSourceFile
Description copied from interface:StaticReference
The source file where the reference lives.- Specified by:
getSourceFile
in interfaceStaticReference<JSType>
-
getSymbol
Description copied from interface:StaticReference
The variable that this reference points to.- Specified by:
getSymbol
in interfaceStaticReference<JSType>
-
getDeclaration
Description copied from interface:StaticSlot
Gets the declaration of this symbol. May not exist.- Specified by:
getDeclaration
in interfaceStaticSlot<JSType>
-
getType
Description copied from interface:StaticSlot
Returns the type information, if any, for this slot.- Specified by:
getType
in interfaceStaticSlot<JSType>
- Returns:
- The type or
null
if no type is declared for it.
-
isTypeInferred
public boolean isTypeInferred()Description copied from interface:StaticSlot
Returns whether the type has been inferred (as opposed to declared).- Specified by:
isTypeInferred
in interfaceStaticSlot<JSType>
-
getJSDocInfo
Description copied from interface:StaticSlot
Gets the JSDoc for this slot.- Specified by:
getJSDocInfo
in interfaceStaticSlot<JSType>
-
setNode
-