Class ConditionalParseTreeListener
java.lang.Object
ch.tocco.nice2.conditionals.api.parser.util.ConditionalParseTreeListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
- Direct Known Subclasses:
AclTreeBuilder
,PersistQLTreeBuilder
public abstract class ConditionalParseTreeListener
extends Object
implements org.antlr.v4.runtime.tree.ParseTreeListener
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConditionalParseTreeListener
(ProblemSink problemSink, TypeManager typeManager) protected
ConditionalParseTreeListener
(String source, ProblemSink problemSink, TypeManager typeManager) -
Method Summary
Modifier and TypeMethodDescriptiondecodeStringLiteral
(String text) endLocation
(org.antlr.v4.runtime.Token token) void
enterEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) void
exitEveryRule
(org.antlr.v4.runtime.ParserRuleContext ctx) floatLiteralNode
(org.antlr.v4.runtime.Token token) genericLiteralNode
(org.antlr.v4.runtime.Token token) identifierNode
(org.antlr.v4.runtime.Token token) identifierNode
(org.antlr.v4.runtime.Token token, char quoteChar) void
install
(org.antlr.v4.runtime.Lexer lexer, org.antlr.v4.runtime.Parser parser) intLiteralNode
(org.antlr.v4.runtime.Token token) <T extends Node>
Tpinpoint
(T node, org.antlr.v4.runtime.Token token) <T extends Node>
Tpinpoint
(T node, org.antlr.v4.runtime.Token... tokens) <T extends Node>
Tvoid
pushSource
(String source) startLocation
(org.antlr.v4.runtime.Token token) stringLiteralNode
(org.antlr.v4.runtime.Token token) tree()
protected void
static String
unescape
(StringReader reader, int bufsize) static String
void
visitErrorNode
(org.antlr.v4.runtime.tree.ErrorNode node) void
visitTerminal
(org.antlr.v4.runtime.tree.TerminalNode node)
-
Field Details
-
problemSink
-
typeManager
-
-
Constructor Details
-
ConditionalParseTreeListener
-
ConditionalParseTreeListener
protected ConditionalParseTreeListener(String source, ProblemSink problemSink, TypeManager typeManager)
-
-
Method Details
-
install
public void install(org.antlr.v4.runtime.Lexer lexer, org.antlr.v4.runtime.Parser parser) -
tree
-
tree
-
pushSource
-
peekSource
-
getTypeManager
-
problem
-
pinpoint
-
pinpoint
-
startLocation
-
endLocation
-
decodeStringLiteral
-
stringLiteralNode
-
intLiteralNode
-
floatLiteralNode
-
genericLiteralNode
-
identifierNode
-
identifierNode
-
unescape
-
unescape
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node) - Specified by:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node) - Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) - Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx) - Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-