Class Property
java.lang.Object
com.google.javascript.rhino.jstype.Property
- All Implemented Interfaces:
StaticTypedRef,StaticTypedSlot,StaticRef,StaticSlot,Serializable
A property slot of an object.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA property instance associated with particular owner type. -
Method Summary
Modifier and TypeMethodDescription@Nullable PropertyGets 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.getScope()@Nullable StaticSourceFileThe source file where the reference lives.The variable that this reference points to.getType()Returns the type information, if any, for this slot.inthashCode()booleanReturns whether the type has been inferred (as opposed to declared).voidtoString()
-
Method Details
-
getName
Description copied from interface:StaticSlotGets the name of the slot.- Specified by:
getNamein interfaceStaticSlot
-
getNode
Description copied from interface:StaticRefThe node where the reference lives. -
getSourceFile
Description copied from interface:StaticRefThe source file where the reference lives.- Specified by:
getSourceFilein interfaceStaticRef
-
getSymbol
Description copied from interface:StaticTypedRefThe variable that this reference points to.- Specified by:
getSymbolin interfaceStaticRef- Specified by:
getSymbolin interfaceStaticTypedRef
-
getDeclaration
Description copied from interface:StaticTypedSlotGets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot- Specified by:
getDeclarationin interfaceStaticTypedSlot
-
getType
Description copied from interface:StaticTypedSlotReturns the type information, if any, for this slot.- Specified by:
getTypein interfaceStaticTypedSlot- Returns:
- The type or
nullif no type is declared for it.
-
isTypeInferred
public boolean isTypeInferred()Description copied from interface:StaticTypedSlotReturns whether the type has been inferred (as opposed to declared).- Specified by:
isTypeInferredin interfaceStaticTypedSlot
-
getJSDocInfo
Description copied from interface:StaticSlotGets the JSDoc for this slot.- Specified by:
getJSDocInfoin interfaceStaticSlot
-
setNode
-
toString
-
getScope
- Specified by:
getScopein interfaceStaticSlot- Specified by:
getScopein interfaceStaticTypedSlot
-
hashCode
public int hashCode()
-