Interface StaticTypedSlot
-
- All Superinterfaces:
java.io.Serializable
,StaticSlot
- All Known Implementing Classes:
Property
,SimpleSlot
,SymbolTable.Symbol
,TypedVar
public interface StaticTypedSlot extends StaticSlot
TheStaticTypedSlot
interface 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 StaticTypedRef
getDeclaration()
Gets the declaration of this symbol.StaticTypedScope
getScope()
JSType
getType()
Returns the type information, if any, for this slot.boolean
isTypeInferred()
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
null
if 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:
getDeclaration
in interfaceStaticSlot
-
getScope
StaticTypedScope getScope()
- Specified by:
getScope
in interfaceStaticSlot
-
-