Interface SyntaxRegistry.Key<I extends SyntaxInfo<?>>

Type Parameters:
I - The syntax type.
All Known Subinterfaces:
SyntaxRegistry.ChildKey<I,P>
Enclosing interface:
SyntaxRegistry

@Experimental public static interface SyntaxRegistry.Key<I extends SyntaxInfo<?>>
Represents a syntax element type.
  • Method Details

    • of

      @Contract("_ -> new") static <I extends SyntaxInfo<?>> SyntaxRegistry.Key<I> of(String name)
      Type Parameters:
      I - The syntax type.
      Parameters:
      name - The name of this key.
      Returns:
      A default key implementation.
    • name

      String name()
      Returns:
      The name of the syntax element this key represents.