Interface Symbol

All Known Implementing Classes:
NativeSymbol, SymbolKey

public interface Symbol
A Symbol is a JavaScript object that obeys the special properties of the Symbol prototype. This interface lets us possibly support multiple implementations of Symbol.
Since:
1.7.8
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Represents the kind of the symbol, built in, registered, or normal.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the symbol's kind.
    Returns the symbol's name.
  • Method Details

    • getName

      String getName()
      Returns the symbol's name. Returns empty string for anonymous symbol (i.e. something created with Symbol()).
    • getKind

      Symbol.Kind getKind()
      Returns the symbol's kind.