public class GuiTestScriptParser extends java.lang.Object implements GuiTestScriptParserTreeConstants, GuiTestScriptParserConstants
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GuiTestScriptParser.JJCalls |
private static class |
GuiTestScriptParser.LookaheadSuccess |
Modifier and Type | Field and Description |
---|---|
private GuiTestScriptParser.JJCalls[] |
jj_2_rtns |
private int |
jj_endpos |
private java.util.List<int[]> |
jj_expentries |
private int[] |
jj_expentry |
private int |
jj_gc |
private int |
jj_gen |
(package private) JavaCharStream |
jj_input_stream |
private int |
jj_kind |
private int |
jj_la |
private int[] |
jj_la1 |
private static int[] |
jj_la1_0 |
private static int[] |
jj_la1_1 |
private static int[] |
jj_la1_2 |
private Token |
jj_lastpos |
private int[] |
jj_lasttokens |
private GuiTestScriptParser.LookaheadSuccess |
jj_ls |
Token |
jj_nt
Next token.
|
private int |
jj_ntk |
private boolean |
jj_rescan |
private Token |
jj_scanpos |
protected JJTGuiTestScriptParserState |
jjtree |
Token |
token
Current token.
|
GuiTestScriptParserTokenManager |
token_source
Generated Token Manager.
|
private boolean |
trace_enabled |
private int |
trace_indent |
JJTACTION, JJTASSIGNMENT, JJTGUIREFERENCE, JJTGUISEARCHCRITERIA, JJTLITERAL, JJTNAMEDARGUMENT, jjtNodeName, JJTROOT, JJTVARREF, JJTVOID
ANCESTOR, ANDASSIGN, ARROW, ASSIGN, ASSIGN_REF, BIT_AND, BIT_NOT, BIT_OR, CHILD, COLON, COMMA, DECIMAL_LITERAL, DECR, DEFAULT, DESCENDANT, DIGIT, DIRECTIVE_PREFIX, DOT, EOF, EQ, ESC_CHAR, ESCAPED_CHAR, EXPONENT, FALSE, FLOAT_LITERAL, FLOAT_SUFFIX, GE, GT, HEX_CHAR, HEX_DIGIT, HEX_LITERAL, HOOK, IDENTIFIER, INCR, INT_SUFFIX, INTEGER_LITERAL, LBRACE, LBRACKET, LE, LETTER, LPAREN, LSHIFTASSIGN, LT, METHOD_PREFIX, MINUS, MINUSASSIGN, MOD, MULTI_LINE_COMMENT, NE, NEWLINE, NOT, NULL, OCTAL_LITERAL, ORASSIGN, PARENT, PLUS, PLUSASSIGN, POW, RBRACE, RBRACKET, REL_LABEL, REMASSIGN, RPAREN, RSIGNEDSHIFTASSIGN, RUNSIGNEDSHIFTASSIGN, SC_AND, SC_OR, SEMICOLON, SIBLING, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STRING_CHAR, STRING_LITERAL, tokenImage, TRUE, UNICODE_CHAR, WORD_CHAR, WORD_START_CHAR, XOR, XORASSIGN
Constructor and Description |
---|
GuiTestScriptParser(GuiTestScriptParserTokenManager tm)
Constructor with generated Token Manager.
|
GuiTestScriptParser(java.io.InputStream stream)
Constructor with InputStream.
|
GuiTestScriptParser(java.io.InputStream stream,
java.lang.String encoding)
Constructor with InputStream and supplied encoding
|
GuiTestScriptParser(java.io.Reader stream)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Action() |
void |
ArgumentList() |
void |
Assignment() |
void |
AssignmentOperator() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
void |
EOS() |
java.lang.Object |
EvalLiteral(java.lang.String data,
int kind) |
java.lang.Object |
EvalLiteralToken(Token t,
java.lang.String sign) |
void |
Expression() |
ParseException |
generateParseException()
Generate ParseException.
|
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
GuiReference() |
void |
GuiRelation() |
void |
Instruction() |
private boolean |
jj_2_1(int xla) |
private boolean |
jj_2_2(int xla) |
private boolean |
jj_2_3(int xla) |
private boolean |
jj_2_4(int xla) |
private boolean |
jj_3_1() |
private boolean |
jj_3_2() |
private boolean |
jj_3_3() |
private boolean |
jj_3_4() |
private boolean |
jj_3R_10() |
private boolean |
jj_3R_6() |
private boolean |
jj_3R_7() |
private boolean |
jj_3R_8() |
private boolean |
jj_3R_9() |
private void |
jj_add_error_token(int kind,
int pos) |
private Token |
jj_consume_token(int kind) |
private static void |
jj_la1_init_0() |
private static void |
jj_la1_init_1() |
private static void |
jj_la1_init_2() |
private int |
jj_ntk_f() |
private void |
jj_rescan_token() |
private void |
jj_save(int index,
int xla) |
private boolean |
jj_scan_token(int kind) |
int |
lastKind()
Return the kind of the last consumed token.
|
int |
lastKind(int pos)
Return the kind of the token consumed pos steps before last.
|
java.lang.String |
lastText()
Return the text (image) of the last consumed token.
|
java.lang.String |
lastText(int pos)
Return the text (image) of the token consumed pos steps before last.
|
Token |
lastToken()
Return the last consumed token.
|
Token |
lastToken(int pos)
Return the token consumed pos steps before last.
|
void |
Literal() |
static void |
main(java.lang.String[] args)
Main entry point, if used as a stand-alone program (e.g.
|
void |
NamedArgument() |
void |
NamedArgumentList() |
SimpleNode |
parse() |
SimpleNode |
ParseScriptProgram()
THE SCRIPT LANGUAGE GRAMMAR STARTS HERE *
|
ScriptNode |
peekNode() |
int |
peekNodeId() |
ScriptNode |
popNode() |
ScriptNode |
popTypedNode(int nodeType) |
void |
ReInit(GuiTestScriptParserTokenManager tm)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream)
Reinitialise.
|
void |
ReInit(java.io.InputStream stream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(java.io.Reader stream)
Reinitialise.
|
void |
SignedNumber()
Usually numbers of the format (+|-)NUMBER (e.g.
|
void |
SingleGuiItem() |
boolean |
testTopNodeType(int nodeType) |
private void |
trace_call(java.lang.String s) |
private void |
trace_return(java.lang.String s) |
private void |
trace_scan(Token t1,
int t2) |
private void |
trace_token(Token t,
java.lang.String where) |
private java.lang.String |
trimRight(java.lang.String s,
int numChars) |
ScriptNode |
tryPopTypedNode(int nodeType) |
void |
VarRef() |
private final GuiTestScriptParser.JJCalls[] jj_2_rtns
private int jj_endpos
private java.util.List<int[]> jj_expentries
private int[] jj_expentry
private int jj_gc
private int jj_gen
JavaCharStream jj_input_stream
private int jj_kind
private int jj_la
private final int[] jj_la1
private static int[] jj_la1_0
private static int[] jj_la1_1
private static int[] jj_la1_2
private Token jj_lastpos
private int[] jj_lasttokens
private final GuiTestScriptParser.LookaheadSuccess jj_ls
public Token jj_nt
private int jj_ntk
private boolean jj_rescan
private Token jj_scanpos
protected JJTGuiTestScriptParserState jjtree
public Token token
public GuiTestScriptParserTokenManager token_source
private boolean trace_enabled
private int trace_indent
public GuiTestScriptParser(GuiTestScriptParserTokenManager tm)
public GuiTestScriptParser(java.io.InputStream stream)
public GuiTestScriptParser(java.io.InputStream stream, java.lang.String encoding)
public GuiTestScriptParser(java.io.Reader stream)
public final void Action() throws ParseException
ParseException
public final void ArgumentList() throws ParseException
ParseException
public final void Assignment() throws ParseException
ParseException
public final void AssignmentOperator() throws ParseException
ParseException
public final void disable_tracing()
public final void enable_tracing()
public final void EOS() throws ParseException
ParseException
public java.lang.Object EvalLiteral(java.lang.String data, int kind) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Object EvalLiteralToken(Token t, java.lang.String sign) throws ParseFormatException
ParseFormatException
public final void Expression() throws ParseException
ParseException
public ParseException generateParseException()
public final Token getNextToken()
public final Token getToken(int index)
public final void GuiReference() throws ParseException
ParseException
public final void GuiRelation() throws ParseException
ParseException
public final void Instruction() throws ParseException
ParseException
private boolean jj_2_1(int xla)
private boolean jj_2_2(int xla)
private boolean jj_2_3(int xla)
private boolean jj_2_4(int xla)
private boolean jj_3_1()
private boolean jj_3_2()
private boolean jj_3_3()
private boolean jj_3_4()
private boolean jj_3R_10()
private boolean jj_3R_6()
private boolean jj_3R_7()
private boolean jj_3R_8()
private boolean jj_3R_9()
private void jj_add_error_token(int kind, int pos)
private Token jj_consume_token(int kind) throws ParseException
ParseException
private static void jj_la1_init_0()
private static void jj_la1_init_1()
private static void jj_la1_init_2()
private int jj_ntk_f()
private void jj_rescan_token()
private void jj_save(int index, int xla)
private boolean jj_scan_token(int kind)
public int lastKind()
public int lastKind(int pos)
public java.lang.String lastText()
public java.lang.String lastText(int pos)
public Token lastToken()
public Token lastToken(int pos)
public final void Literal() throws ParseException
ParseException
public static void main(java.lang.String[] args) throws ParseException
ParseException
public final void NamedArgument() throws ParseException
ParseException
public final void NamedArgumentList() throws ParseException
ParseException
public SimpleNode parse() throws ParseException
ParseException
public final SimpleNode ParseScriptProgram() throws ParseException
ParseException
public ScriptNode peekNode()
public int peekNodeId()
public ScriptNode popNode()
public ScriptNode popTypedNode(int nodeType)
public void ReInit(GuiTestScriptParserTokenManager tm)
public void ReInit(java.io.InputStream stream)
public void ReInit(java.io.InputStream stream, java.lang.String encoding)
public void ReInit(java.io.Reader stream)
public final void SignedNumber() throws ParseException
ParseException
public final void SingleGuiItem() throws ParseException
ParseException
public boolean testTopNodeType(int nodeType)
private void trace_call(java.lang.String s)
private void trace_return(java.lang.String s)
private void trace_scan(Token t1, int t2)
private void trace_token(Token t, java.lang.String where)
private java.lang.String trimRight(java.lang.String s, int numChars)
public ScriptNode tryPopTypedNode(int nodeType)
public final void VarRef() throws ParseException
ParseException