Interface StaticSlot<T>
-
- Type Parameters:
T
- The type of information stored about the slot
- All Known Implementing Classes:
Property
,Scope.Arguments
,Scope.Var
,SimpleSlot
,SymbolTable.Symbol
public interface StaticSlot<T>
TheStaticSlot
interface must be implemented by variables that can appear as members of aStaticScope
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StaticReference<T>
getDeclaration()
Gets the declaration of this symbol.JSDocInfo
getJSDocInfo()
Gets the JSDoc for this slot.java.lang.String
getName()
Gets the name of the slot.T
getType()
Returns the type information, if any, for this slot.boolean
isTypeInferred()
Returns whether the type has been inferred (as opposed to declared).
-
-
-
Method Detail
-
getName
java.lang.String getName()
Gets the name of the slot.
-
getType
T 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
StaticReference<T> getDeclaration()
Gets the declaration of this symbol. May not exist.
-
getJSDocInfo
JSDocInfo getJSDocInfo()
Gets the JSDoc for this slot.
-
-