Class SimpleSlot
java.lang.Object
com.google.javascript.rhino.jstype.SimpleSlot
- All Implemented Interfaces:
StaticTypedSlot,StaticSlot,Serializable
- Direct Known Subclasses:
SymbolTable.Symbol
The minimum implementation of
StaticTypedSlot.- 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
-
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
-
getDeclaration
Description copied from interface:StaticTypedSlotGets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot- Specified by:
getDeclarationin interfaceStaticTypedSlot
-
getJSDocInfo
Description copied from interface:StaticSlotGets the JSDoc for this slot.- Specified by:
getJSDocInfoin interfaceStaticSlot
-
getScope
- Specified by:
getScopein interfaceStaticSlot- Specified by:
getScopein interfaceStaticTypedSlot
-