Interface StaticTypedSlot
-
- All Superinterfaces:
java.io.Serializable,StaticSlot
- All Known Implementing Classes:
Property,SimpleSlot,SymbolTable.Symbol,TypedVar
public interface StaticTypedSlot extends StaticSlot
TheStaticTypedSlotinterface must be implemented by variables that can appear as members of aStaticTypedScope.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StaticTypedRefgetDeclaration()Gets the declaration of this symbol.StaticTypedScopegetScope()JSTypegetType()Returns the type information, if any, for this slot.booleanisTypeInferred()Returns whether the type has been inferred (as opposed to declared).-
Methods inherited from interface com.google.javascript.rhino.StaticSlot
getJSDocInfo, getName
-
-
-
-
Method Detail
-
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
-
-