public class DslHtmlDocGen extends DslDocGen implements RenderingDataBuilder
Modifier and Type | Class and Description |
---|---|
class |
DslHtmlDocGen.DefaultRenderable
Default renderable based on Object to render class name to identify the rendering template.
|
static class |
DslHtmlDocGen.RenderingData
Rendering data of this rendering implementation, containing only the template's name.b
|
Modifier and Type | Field and Description |
---|---|
static TemplatesHolder<LexerBlock> |
BLOCK_TEMPLATES |
static TemplatesHolder<Lexer> |
LEXER_TEMPLATES |
static TemplatesHolder<LexerMatcher> |
MATCHER_TEMPLATES |
BLOCK_HANDLERS, LEXER_HANDLERS, MATCHER_HANDLERS
Constructor and Description |
---|
DslHtmlDocGen(Grammar g) |
Modifier and Type | Method and Description |
---|---|
Renderable |
buildRenderable(Grammar grammar,
Object toRender)
Returns an instance of
DslHtmlDocGen.DefaultRenderable to render the object. |
Object |
buildRenderingData(Grammar grammar,
LexerBlock block,
LexerParser lexerParser)
Builds information to render a block
|
Object |
buildRenderingData(Grammar grammar,
Lexer lexer,
LexerParser lexerParser,
boolean anonymous)
Builds information to render a lexer
|
Object |
buildRenderingData(Grammar grammar,
LexerMatcher matcher,
LexerParser lexerParser,
LexerMatcherHandler.Mode mode)
Builds information to render a matcher
|
org.jtwig.environment.EnvironmentConfiguration |
createJtwigConfiguration() |
protected RenderingDataBuilder |
getRenderingDataBuilder()
Allows to deport the creation of redering data in the implementing class.
|
protected SyntaxicScheme |
newSyntaxicScheme() |
protected void |
render(HashMap<String,Object> model,
OutputStream os)
Responsible of the rendering task into the output stream.
|
generate, generateHeader, getModel
public static final TemplatesHolder<LexerBlock> BLOCK_TEMPLATES
public static final TemplatesHolder<Lexer> LEXER_TEMPLATES
public static final TemplatesHolder<LexerMatcher> MATCHER_TEMPLATES
public DslHtmlDocGen(Grammar g) throws UtilsException
UtilsException
public org.jtwig.environment.EnvironmentConfiguration createJtwigConfiguration()
protected SyntaxicScheme newSyntaxicScheme()
newSyntaxicScheme
in class DslDocGen
protected void render(HashMap<String,Object> model, OutputStream os)
DslDocGen
protected RenderingDataBuilder getRenderingDataBuilder()
DslDocGen
getRenderingDataBuilder
in class DslDocGen
public Object buildRenderingData(Grammar grammar, Lexer lexer, LexerParser lexerParser, boolean anonymous)
RenderingDataBuilder
buildRenderingData
in interface RenderingDataBuilder
public Object buildRenderingData(Grammar grammar, LexerBlock block, LexerParser lexerParser)
RenderingDataBuilder
buildRenderingData
in interface RenderingDataBuilder
public Object buildRenderingData(Grammar grammar, LexerMatcher matcher, LexerParser lexerParser, LexerMatcherHandler.Mode mode)
RenderingDataBuilder
buildRenderingData
in interface RenderingDataBuilder
public Renderable buildRenderable(Grammar grammar, Object toRender)
DslHtmlDocGen.DefaultRenderable
to render the object.buildRenderable
in interface RenderingDataBuilder