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>TheStaticSlotinterface 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.JSDocInfogetJSDocInfo()Gets the JSDoc for this slot.java.lang.StringgetName()Gets the name of the slot.TgetType()Returns the type information, if any, for this slot.booleanisTypeInferred()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
nullif 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.
-
-