public static class TemplateParser.TemplateParserListener extends RockerParserBaseListener
| Constructor and Description |
|---|
TemplateParserListener(org.antlr.v4.runtime.ANTLRInputStream input,
TemplateModel model,
String templatePath) |
enterArgumentsDeclaration, enterBlock, enterContentClosureExpression, enterEvalExpression, enterImportStatement, enterNullTernaryExpression, enterOptionStatement, enterTemplate, enterTemplateContent, enterValueClosureExpression, enterValueExpression, exitArgumentsStatement, exitBlock, exitComment, exitContentClosureExpression, exitEval, exitEvalExpression, exitIfElseBlock, exitIfElseIfBlock, exitImportDeclaration, exitImportStatement, exitNullTernary, exitNullTernaryExpression, exitOptionDeclaration, exitOptionStatement, exitPlain, exitPlainElseIfBlock, exitTemplate, exitTemplateContent, exitValue, exitValueClosureExpression, exitValueExpression, exitWithElseBlock, visitErrorNode, visitTerminalpublic TemplateParserListener(org.antlr.v4.runtime.ANTLRInputStream input,
TemplateModel model,
String templatePath)
public SourceRef createSourceRef(org.antlr.v4.runtime.ParserRuleContext rule)
public SourceRef createSourceRef(org.antlr.v4.runtime.ParserRuleContext rule, org.antlr.v4.runtime.Token start, org.antlr.v4.runtime.Token stop)
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
RockerParserBaseListenerThe default implementation does nothing.
enterEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListenerenterEveryRule in class RockerParserBaseListenerpublic void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
RockerParserBaseListenerThe default implementation does nothing.
exitEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListenerexitEveryRule in class RockerParserBaseListenerpublic void verifyTemplateHeaderElementOK()
public boolean areWeCurrentlyInAForLoop()
public void enterComment(RockerParser.CommentContext ctx)
RockerParserBaseListenerRockerParser.comment().
The default implementation does nothing.
enterComment in interface RockerParserListenerenterComment in class RockerParserBaseListenerctx - the parse treepublic void enterImportDeclaration(RockerParser.ImportDeclarationContext ctx)
RockerParserBaseListenerRockerParser.importDeclaration().
The default implementation does nothing.
enterImportDeclaration in interface RockerParserListenerenterImportDeclaration in class RockerParserBaseListenerctx - the parse treepublic void enterOptionDeclaration(RockerParser.OptionDeclarationContext ctx)
RockerParserBaseListenerRockerParser.optionDeclaration().
The default implementation does nothing.
enterOptionDeclaration in interface RockerParserListenerenterOptionDeclaration in class RockerParserBaseListenerctx - the parse treepublic void exitArgumentsDeclaration(RockerParser.ArgumentsDeclarationContext ctx)
RockerParserBaseListenerRockerParser.argumentsDeclaration().
The default implementation does nothing.
exitArgumentsDeclaration in interface RockerParserListenerexitArgumentsDeclaration in class RockerParserBaseListenerctx - the parse treepublic void enterArgumentsStatement(RockerParser.ArgumentsStatementContext ctx)
RockerParserBaseListenerRockerParser.argumentsStatement().
The default implementation does nothing.
enterArgumentsStatement in interface RockerParserListenerenterArgumentsStatement in class RockerParserBaseListenerctx - the parse treepublic void enterPlain(RockerParser.PlainContext ctx)
RockerParserBaseListenerRockerParser.plain().
The default implementation does nothing.
enterPlain in interface RockerParserListenerenterPlain in class RockerParserBaseListenerctx - the parse treepublic void enterPlainBlock(RockerParser.PlainBlockContext ctx)
RockerParserBaseListenerRockerParser.plainBlock().
The default implementation does nothing.
enterPlainBlock in interface RockerParserListenerenterPlainBlock in class RockerParserBaseListenerctx - the parse treepublic void exitPlainBlock(RockerParser.PlainBlockContext ctx)
RockerParserBaseListenerRockerParser.plainBlock().
The default implementation does nothing.
exitPlainBlock in interface RockerParserListenerexitPlainBlock in class RockerParserBaseListenerctx - the parse treepublic void enterPlainElseIfBlock(RockerParser.PlainElseIfBlockContext ctx)
RockerParserBaseListenerRockerParser.plainElseIfBlock().
The default implementation does nothing.
enterPlainElseIfBlock in interface RockerParserListenerenterPlainElseIfBlock in class RockerParserBaseListenerctx - the parse treepublic void enterPlainElseBlock(RockerParser.PlainElseBlockContext ctx)
RockerParserBaseListenerRockerParser.plainElseBlock().
The default implementation does nothing.
enterPlainElseBlock in interface RockerParserListenerenterPlainElseBlock in class RockerParserBaseListenerctx - the parse treepublic void exitPlainElseBlock(RockerParser.PlainElseBlockContext ctx)
RockerParserBaseListenerRockerParser.plainElseBlock().
The default implementation does nothing.
exitPlainElseBlock in interface RockerParserListenerexitPlainElseBlock in class RockerParserBaseListenerctx - the parse treepublic void enterValueClosure(RockerParser.ValueClosureContext ctx)
RockerParserBaseListenerRockerParser.valueClosure().
The default implementation does nothing.
enterValueClosure in interface RockerParserListenerenterValueClosure in class RockerParserBaseListenerctx - the parse treepublic void exitValueClosure(RockerParser.ValueClosureContext ctx)
RockerParserBaseListenerRockerParser.valueClosure().
The default implementation does nothing.
exitValueClosure in interface RockerParserListenerexitValueClosure in class RockerParserBaseListenerctx - the parse treepublic void enterContentClosure(RockerParser.ContentClosureContext ctx)
RockerParserBaseListenerRockerParser.contentClosure().
The default implementation does nothing.
enterContentClosure in interface RockerParserListenerenterContentClosure in class RockerParserBaseListenerctx - the parse treepublic void exitContentClosure(RockerParser.ContentClosureContext ctx)
RockerParserBaseListenerRockerParser.contentClosure().
The default implementation does nothing.
exitContentClosure in interface RockerParserListenerexitContentClosure in class RockerParserBaseListenerctx - the parse treepublic void enterValue(RockerParser.ValueContext ctx)
RockerParserBaseListenerRockerParser.value().
The default implementation does nothing.
enterValue in interface RockerParserListenerenterValue in class RockerParserBaseListenerctx - the parse treepublic void enterNullTernary(RockerParser.NullTernaryContext ctx)
RockerParserBaseListenerRockerParser.nullTernary().
The default implementation does nothing.
enterNullTernary in interface RockerParserListenerenterNullTernary in class RockerParserBaseListenerctx - the parse treepublic void enterEval(RockerParser.EvalContext ctx)
RockerParserBaseListenerRockerParser.eval().
The default implementation does nothing.
enterEval in interface RockerParserListenerenterEval in class RockerParserBaseListenerctx - the parse treepublic void enterForBlock(RockerParser.ForBlockContext ctx)
RockerParserBaseListenerRockerParser.forBlock().
The default implementation does nothing.
enterForBlock in interface RockerParserListenerenterForBlock in class RockerParserBaseListenerctx - the parse treepublic void exitForBlock(RockerParser.ForBlockContext ctx)
RockerParserBaseListenerRockerParser.forBlock().
The default implementation does nothing.
exitForBlock in interface RockerParserListenerexitForBlock in class RockerParserBaseListenerctx - the parse treepublic void enterWithBlock(RockerParser.WithBlockContext ctx)
RockerParserBaseListenerRockerParser.withBlock().
The default implementation does nothing.
enterWithBlock in interface RockerParserListenerenterWithBlock in class RockerParserBaseListenerctx - the parse treepublic void enterWithElseBlock(RockerParser.WithElseBlockContext ctx)
RockerParserBaseListenerRockerParser.withElseBlock().
The default implementation does nothing.
enterWithElseBlock in interface RockerParserListenerenterWithElseBlock in class RockerParserBaseListenerctx - the parse treepublic void exitWithBlock(RockerParser.WithBlockContext ctx)
RockerParserBaseListenerRockerParser.withBlock().
The default implementation does nothing.
exitWithBlock in interface RockerParserListenerexitWithBlock in class RockerParserBaseListenerctx - the parse treepublic void enterIfBlock(RockerParser.IfBlockContext ctx)
RockerParserBaseListenerRockerParser.ifBlock().
The default implementation does nothing.
enterIfBlock in interface RockerParserListenerenterIfBlock in class RockerParserBaseListenerctx - the parse treepublic void exitIfBlock(RockerParser.IfBlockContext ctx)
RockerParserBaseListenerRockerParser.ifBlock().
The default implementation does nothing.
exitIfBlock in interface RockerParserListenerexitIfBlock in class RockerParserBaseListenerctx - the parse treepublic void enterIfElseIfBlock(RockerParser.IfElseIfBlockContext ctx)
RockerParserBaseListenerRockerParser.ifElseIfBlock().
The default implementation does nothing.
enterIfElseIfBlock in interface RockerParserListenerenterIfElseIfBlock in class RockerParserBaseListenerctx - the parse treepublic void enterIfElseBlock(RockerParser.IfElseBlockContext ctx)
RockerParserBaseListenerRockerParser.ifElseBlock().
The default implementation does nothing.
enterIfElseBlock in interface RockerParserListenerenterIfElseBlock in class RockerParserBaseListenerctx - the parse treeCopyright © 2016–2020 Fizzed, Inc. All rights reserved.