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 Details

  • Constructor Details

    • ConditionalParseTreeListener

      protected ConditionalParseTreeListener(ProblemSink problemSink, TypeManager typeManager)
    • 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

      protected void tree(Node tree)
    • tree

      public Node tree()
    • pushSource

      public void pushSource(String source)
    • peekSource

      public String peekSource()
    • getTypeManager

      public TypeManager getTypeManager()
    • problem

      public <T extends Node> T problem(T node, Problem problem)
    • pinpoint

      public <T extends Node> T pinpoint(T node, org.antlr.v4.runtime.Token token)
    • pinpoint

      public <T extends Node> T pinpoint(T node, org.antlr.v4.runtime.Token... tokens)
    • startLocation

      public Location startLocation(org.antlr.v4.runtime.Token token)
    • endLocation

      public Location endLocation(org.antlr.v4.runtime.Token token)
    • decodeStringLiteral

      public String decodeStringLiteral(String text)
    • stringLiteralNode

      public LiteralNode stringLiteralNode(org.antlr.v4.runtime.Token token)
    • intLiteralNode

      public LiteralNode intLiteralNode(org.antlr.v4.runtime.Token token)
    • floatLiteralNode

      public LiteralNode floatLiteralNode(org.antlr.v4.runtime.Token token)
    • genericLiteralNode

      public LiteralNode genericLiteralNode(org.antlr.v4.runtime.Token token)
    • identifierNode

      public IdentifierNode identifierNode(org.antlr.v4.runtime.Token token)
    • identifierNode

      public IdentifierNode identifierNode(org.antlr.v4.runtime.Token token, char quoteChar)
    • unescape

      public static String unescape(String string)
    • unescape

      public static String unescape(StringReader reader, int bufsize)
    • visitTerminal

      public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
      Specified by:
      visitTerminal in interface org.antlr.v4.runtime.tree.ParseTreeListener
    • visitErrorNode

      public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
      Specified by:
      visitErrorNode in interface org.antlr.v4.runtime.tree.ParseTreeListener
    • enterEveryRule

      public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
      Specified by:
      enterEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListener
    • exitEveryRule

      public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
      Specified by:
      exitEveryRule in interface org.antlr.v4.runtime.tree.ParseTreeListener