public abstract class DslDocGen extends Object
Modifier and Type | Field and Description |
---|---|
static HandlersHolder<LexerBlock,LexerBlockHandler> |
BLOCK_HANDLERS |
static HandlersHolder<Lexer,LexerHandler> |
LEXER_HANDLERS |
static HandlersHolder<LexerMatcher,LexerMatcherHandler> |
MATCHER_HANDLERS |
Modifier and Type | Method and Description |
---|---|
void |
generate(OutputStream os) |
protected void |
generateHeader() |
protected HashMap<String,Object> |
getModel() |
protected abstract RenderingDataBuilder |
getRenderingDataBuilder()
Allows to deport the creation of redering data in the implementing class.
|
protected abstract SyntaxicScheme |
newSyntaxicScheme() |
protected abstract void |
render(HashMap<String,Object> model,
OutputStream os)
Responsible of the rendering task into the output stream.
|
public static final HandlersHolder<Lexer,LexerHandler> LEXER_HANDLERS
public static final HandlersHolder<LexerMatcher,LexerMatcherHandler> MATCHER_HANDLERS
public static final HandlersHolder<LexerBlock,LexerBlockHandler> BLOCK_HANDLERS
public DslDocGen(Grammar g) throws UtilsException
UtilsException
public void generate(OutputStream os) throws DslException
DslException
protected void generateHeader()
protected abstract RenderingDataBuilder getRenderingDataBuilder()
protected abstract SyntaxicScheme newSyntaxicScheme()
protected abstract void render(HashMap<String,Object> model, OutputStream os)