- Type Parameters:
T- the terminal symbol value type
- All Superinterfaces:
Cfg.Annotatable<T>,Cfg.Element<T>
- All Known Implementing Classes:
Cfg.NonTerminal,Cfg.Terminal
public static sealed interface Cfg.Symbol<T>
extends Cfg.Element<T>
permits Cfg.NonTerminal<T>, Cfg.Terminal<T>
Represents the symbols the BNF grammar consists.
-
Method Summary
Methods inherited from interface io.jenetics.ext.grammar.Cfg.Annotatable
annotation
-
Method Details
-
name
Return the name of the symbol.- Returns:
- the name of the symbol
-
at
Description copied from interface:Cfg.AnnotatableCreate a new copy of the CFG element, with the givenannotation.- Specified by:
atin interfaceCfg.Annotatable<T>- Parameters:
annotation- the annotation of the newly created element, may benull- Returns:
- a copy of the element with the given
annotation
-