public class SimpleParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleParser.ParsingState |
Modifier and Type | Field and Description |
---|---|
static SimpleParser.ParsingState |
START_STATE |
Constructor and Description |
---|
SimpleParser() |
Modifier and Type | Method and Description |
---|---|
List<ParsedResult> |
EOF() |
SimpleParser.ParsingState |
getState() |
List<ParsedResult> |
parseLines(String str) |
static List<ParsedResult> |
parseScript(String str)
State Machine
|
String |
toString() |
public static final SimpleParser.ParsingState START_STATE
public static List<ParsedResult> parseScript(String str) throws InvalidStatementException
(start) TOK_START --> META ---------------------> META_EOS | | | |-----------> STATEMENT ----------> STMT_EOS \ ^ \ / \-> WITHIN_QUOTE \ ^ \---/
InvalidStatementException
public List<ParsedResult> parseLines(String str) throws InvalidStatementException
InvalidStatementException
public List<ParsedResult> EOF() throws InvalidStatementException
InvalidStatementException
public SimpleParser.ParsingState getState()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.