Interface StaticTypedSlot
- All Superinterfaces:
Serializable,StaticSlot
- All Known Implementing Classes:
Property,SimpleSlot,SymbolTable.Symbol,TypedVar
The
StaticTypedSlot interface must be implemented by variables that can appear as members
of a StaticTypedScope.-
Method Summary
Methods inherited from interface com.google.javascript.rhino.StaticSlot
getJSDocInfo, getName
-
Method Details
-
getType
JSType getType()Returns the type information, if any, for this slot.- Returns:
- The type or
nullif no type is declared for it.
-
isTypeInferred
boolean isTypeInferred()Returns whether the type has been inferred (as opposed to declared). -
getDeclaration
StaticTypedRef getDeclaration()Gets the declaration of this symbol. May not exist.- Specified by:
getDeclarationin interfaceStaticSlot
-
getScope
StaticTypedScope getScope()- Specified by:
getScopein interfaceStaticSlot
-