public abstract class SyntaxicScheme extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SyntaxicScheme.AbstractElement |
class |
SyntaxicScheme.AbstractElementGroup |
class |
SyntaxicScheme.AbstractParallelElementGroup |
class |
SyntaxicScheme.AbstractSequentialElementGroup |
static interface |
SyntaxicScheme.Element |
static interface |
SyntaxicScheme.ElementGroup |
static class |
SyntaxicScheme.EmptyElement |
static class |
SyntaxicScheme.LabelElement |
static class |
SyntaxicScheme.LexerRefElement |
Constructor and Description |
---|
SyntaxicScheme() |
public void openSequentialMode()
public void openParallelMode(boolean authorizeEmptyElements, boolean multiple)
public void closeMode()
public void addRenderableElement(Renderable elem, boolean mandatory)
public void addElement(String elem, boolean mandatory)
public void addLexerRefElement(String elem, boolean mandatory)
public void addLexerRefElement(Lexer elem, boolean mandatory)
public void addEmptyElement()
public void addElement(SyntaxicScheme.Element elem, boolean mandatory)
public void render(StringBuilder b)
public SyntaxicScheme.EmptyElement newEmptyElement()
public SyntaxicScheme.LexerRefElement newLexerRefElement(String elem)
public SyntaxicScheme.LabelElement newLabelElement(String elem)
public SyntaxicScheme.Element newRenderableElement(Renderable elem)
Renderable
(if not null) in a SyntaxicScheme.LabelElement
. If null, returns an SyntaxicScheme.EmptyElement
.public abstract SyntaxicScheme.AbstractSequentialElementGroup newSequentialElementGroup(boolean authorizeEmptyElements)
public abstract SyntaxicScheme.AbstractParallelElementGroup newParallelElementGroup(boolean authorizeEmptyElements, boolean multiple)