@Deprecated public abstract class Parser extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
ARROW
Deprecated.
|
protected static int |
BIG
Deprecated.
|
protected static int |
BYTES
Deprecated.
|
protected static int |
CLOSE_BRACE
Deprecated.
|
protected static int |
CLOSE_BRACKET
Deprecated.
|
protected static int |
CLOSE_PAREN
Deprecated.
|
protected static int |
COMMA
Deprecated.
|
protected static int |
DEC_VAL
Deprecated.
|
protected static int |
DECIMAL
Deprecated.
|
protected static int |
DOUBLE_SPECIAL_VAL
Deprecated.
|
protected static int |
EXPRESSION
Deprecated.
|
protected static int |
FALSE
Deprecated.
|
protected static int |
INITIAL
Deprecated.
|
protected static int |
INT_HEX_VAL
Deprecated.
|
protected static int |
INT_VAL
Deprecated.
|
protected static int |
INTEGER
Deprecated.
|
protected static int |
LONG_HEX_VAL
Deprecated.
|
protected static int |
LONG_VAL
Deprecated.
|
protected static int |
OPEN_BRACE
Deprecated.
|
protected static int |
OPEN_BRACKET
Deprecated.
|
protected static int |
OPEN_PAREN
Deprecated.
|
protected static int |
STR_VAL
Deprecated.
|
protected static int |
TRUE
Deprecated.
|
protected static int |
TYPE_VAL
Deprecated.
|
protected static int |
UNDEFINED
Deprecated.
|
Constructor and Description |
---|
Parser()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
begin(int baseState)
Deprecated.
Set the lexer's current state.
|
protected void |
begin(String state)
Deprecated.
This function is used to change the initial state for the lexer.
|
void |
echo()
Deprecated.
Print the current string token to the standard output.
|
InputStream |
getInput()
Deprecated.
Obtain the current input.
|
void |
setBufferSize(int bufferSize)
Deprecated.
Set the internal buffer size.
|
void |
setInput(InputStream is)
Deprecated.
Set the current input.
|
protected void |
yyClearError()
Deprecated.
Clear the error flag.
|
protected Object |
yyGetValue(int arg)
Deprecated.
Gets the object value associated with the symbol at the argument's position.
|
int |
yyInputStackSize()
Deprecated.
Obtain the number of input objects on the stack.
|
int |
yyLength()
Deprecated.
Get the current text token's length.
|
protected void |
yyLess(int n)
Deprecated.
Put all but n characters back to the input stream.
|
protected int |
yyLex()
Deprecated.
Call this function to start the scanning of the input.
|
int |
yyParse()
Deprecated.
Call this function to start parsing.
|
protected boolean |
yyParseError(int terminal)
Deprecated.
This function reports error and return true if critical error occurred, or
false if the error has been successfully recovered.
|
protected org.jboss.dmr.Parser.YYParserState |
yyPeekLookahead()
Deprecated.
This function is used by the error handling grammars to check the immediate
lookahead token on the stack.
|
void |
yyPopInput()
Deprecated.
Switch the current input to the old input on stack.
|
protected void |
yyPopLexerState()
Deprecated.
Restore the previous lexer state.
|
protected void |
yyPopLookahead()
Deprecated.
This function is used by the error handling grammars to pop an unwantted
token from the lookahead stack.
|
void |
yyPushInput(InputStream is)
Deprecated.
Switch the current input to the new input.
|
protected void |
yyPushLexerState(int newState)
Deprecated.
Push the current state onto lexer state onto stack and
begin the new state specified by the user.
|
protected void |
yyPushLexerState(String state)
Deprecated.
Push the current state onto lexer state onto stack and
begin the new state specified by the user.
|
protected boolean |
yyRefreshBuffer()
Deprecated.
|
void |
yyResetBuffer()
Deprecated.
Reset the internal buffer.
|
protected void |
yySetValue(Object value)
Deprecated.
Set the object value for the current non-terminal being reduced.
|
String |
yyText()
Deprecated.
Get the current token text.
|
protected boolean |
yyWrap()
Deprecated.
Check if there are more inputs.
|
protected static final int OPEN_BRACE
protected static final int CLOSE_BRACE
protected static final int OPEN_BRACKET
protected static final int CLOSE_BRACKET
protected static final int OPEN_PAREN
protected static final int CLOSE_PAREN
protected static final int ARROW
protected static final int COMMA
protected static final int BIG
protected static final int BYTES
protected static final int INTEGER
protected static final int DECIMAL
protected static final int EXPRESSION
protected static final int UNDEFINED
protected static final int TRUE
protected static final int FALSE
protected static final int INT_VAL
protected static final int INT_HEX_VAL
protected static final int LONG_VAL
protected static final int LONG_HEX_VAL
protected static final int DOUBLE_SPECIAL_VAL
protected static final int DEC_VAL
protected static final int STR_VAL
protected static final int TYPE_VAL
protected static final int INITIAL
public void setInput(InputStream is)
is
- the new input.public InputStream getInput()
public void yyPushInput(InputStream is)
is
- the new inputpublic void yyPopInput()
public int yyInputStackSize()
public String yyText()
Avoid calling this function unless it is absolutely necessary since it creates a copy of the token string. The string length can be found by reading _yyLength or calling yyLength () function.
public int yyLength()
public void echo()
protected void yyLess(int n)
n
- The number of characters.protected void begin(int baseState)
baseState
- the base state indexprotected void yyPushLexerState(int newState)
newState
- the new state.protected void yyPopLexerState()
protected boolean yyRefreshBuffer() throws IOException
IOException
public void yyResetBuffer()
public void setBufferSize(int bufferSize)
bufferSize
- the new buffer size.protected int yyLex() throws IOException
IOException
- in case of I/O error.public int yyParse() throws IOException
IOException
- in case of errorprotected org.jboss.dmr.Parser.YYParserState yyPeekLookahead()
protected void yyPopLookahead()
protected void yyClearError()
This function is used in error recovery.
protected boolean yyParseError(int terminal) throws IOException
terminal
- the terminal that caused the error.IOException
- in case of error.protected Object yyGetValue(int arg)
arg
- the symbol position starting from 1.protected void yySetValue(Object value)
value
- the object value for the current non-terminal.protected void begin(String state)
state
- the name of the stateprotected void yyPushLexerState(String state)
state
- the new state.protected boolean yyWrap() throws IOException
IOException
- in case of an IO errorCopyright © 2017 JBoss by Red Hat. All rights reserved.