Package io.trino.cli

Class InputParser

java.lang.Object
io.trino.cli.InputParser
All Implemented Interfaces:
org.jline.reader.Parser

public class InputParser extends Object implements org.jline.reader.Parser
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jline.reader.Parser

    org.jline.reader.Parser.ParseContext
  • Field Summary

    Fields inherited from interface org.jline.reader.Parser

    REGEX_COMMAND, REGEX_VARIABLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isEscapeChar(char ch)
     
    org.jline.reader.ParsedLine
    parse(String line, int cursor, org.jline.reader.Parser.ParseContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jline.reader.Parser

    getCommand, getVariable, parse, validCommandName, validVariableName
  • Constructor Details

    • InputParser

      public InputParser()
  • Method Details

    • parse

      public org.jline.reader.ParsedLine parse(String line, int cursor, org.jline.reader.Parser.ParseContext context) throws org.jline.reader.SyntaxError
      Specified by:
      parse in interface org.jline.reader.Parser
      Throws:
      org.jline.reader.SyntaxError
    • isEscapeChar

      public boolean isEscapeChar(char ch)
      Specified by:
      isEscapeChar in interface org.jline.reader.Parser