Class SimpleSlot
java.lang.Object
com.google.javascript.rhino.jstype.SimpleSlot
- All Implemented Interfaces:
StaticSlot<JSType>,Serializable
- Direct Known Subclasses:
SymbolTable.Symbol
The minimum implementation of StaticSlot.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleSlot
-
-
Method Details
-
getName
Description copied from interface:StaticSlotGets the name of the slot.- Specified by:
getNamein interfaceStaticSlot<JSType>
-
getType
Description copied from interface:StaticSlotReturns the type information, if any, for this slot.- Specified by:
getTypein interfaceStaticSlot<JSType>- Returns:
- The type or
nullif no type is declared for it.
-
isTypeInferred
public boolean isTypeInferred()Description copied from interface:StaticSlotReturns whether the type has been inferred (as opposed to declared).- Specified by:
isTypeInferredin interfaceStaticSlot<JSType>
-
getDeclaration
Description copied from interface:StaticSlotGets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot<JSType>
-
getJSDocInfo
Description copied from interface:StaticSlotGets the JSDoc for this slot.- Specified by:
getJSDocInfoin interfaceStaticSlot<JSType>
-