Interface StaticTypedSlot

All Superinterfaces:
Serializable, StaticSlot
All Known Implementing Classes:
Property, SimpleSlot, SymbolTable.Symbol, TypedVar

public interface StaticTypedSlot extends StaticSlot
The StaticTypedSlot interface must be implemented by variables that can appear as members of a StaticTypedScope.
  • Method Details

    • 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 interface StaticSlot
    • getScope

      StaticTypedScope getScope()
      Specified by:
      getScope in interface StaticSlot