- Type Parameters:
T- the terminal symbol value type
- All Known Subinterfaces:
Cfg.Element<T>,Cfg.Symbol<T>
- All Known Implementing Classes:
Cfg.Expression,Cfg.NonTerminal,Cfg.Rule,Cfg.Terminal
Interface for annotatable CFG types.
- Since:
- 8.2
- Version:
- 8.2
-
Method Summary
Modifier and TypeMethodDescriptionReturn the element annotation, might benull.Create a new copy of the CFG element, with the givenannotation.
-
Method Details
-
annotation
Return the element annotation, might benull.- Returns:
- the annotation of the element, or
nullif the element has none
-
at
Create a new copy of the CFG element, with the givenannotation.- Parameters:
annotation- the annotation of the newly created element, may benull- Returns:
- a copy of the element with the given
annotation
-