|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.streamhtmlparser.impl.GenericParser
com.google.streamhtmlparser.impl.JavascriptParserImpl
public class JavascriptParserImpl
Many comments copied almost verbatim from the original C version.
Field Summary |
---|
Fields inherited from class com.google.streamhtmlparser.impl.GenericParser |
---|
columnNumber, currentState, initialState, intToExtStateTable, lineNumber, parserStateTable |
Fields inherited from interface com.google.streamhtmlparser.JavascriptParser |
---|
STATE_COMMENT, STATE_DQ, STATE_Q, STATE_REGEXP, STATE_TEXT |
Fields inherited from interface com.google.streamhtmlparser.Parser |
---|
STATE_ERROR |
Constructor Summary | |
---|---|
JavascriptParserImpl()
Creates a JavascriptParserImpl object. |
|
JavascriptParserImpl(JavascriptParserImpl aJavascriptParserImpl)
Creates a JavascriptParserImpl object that is a copy
of the one provided. |
Method Summary | |
---|---|
protected com.google.streamhtmlparser.impl.InternalState |
handleEnterState(com.google.streamhtmlparser.impl.InternalState currentState,
com.google.streamhtmlparser.impl.InternalState expectedNextState,
char input)
Invoked when the parser enters a new state. |
protected com.google.streamhtmlparser.impl.InternalState |
handleExitState(com.google.streamhtmlparser.impl.InternalState currentState,
com.google.streamhtmlparser.impl.InternalState expectedNextState,
char input)
Invoked when the parser exits a state. |
protected com.google.streamhtmlparser.impl.InternalState |
handleInState(com.google.streamhtmlparser.impl.InternalState currentState,
char input)
Invoked for each character read when no state change occured. |
void |
reset()
Reset the parser back to its initial default state. |
Methods inherited from class com.google.streamhtmlparser.impl.GenericParser |
---|
getColumnNumber, getLineNumber, getState, parse, parse, record, setColumnNumber, setLineNumber, setNextState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.streamhtmlparser.Parser |
---|
getColumnNumber, getLineNumber, getState, parse, parse, setColumnNumber, setLineNumber |
Constructor Detail |
---|
public JavascriptParserImpl()
JavascriptParserImpl
object.
public JavascriptParserImpl(JavascriptParserImpl aJavascriptParserImpl)
JavascriptParserImpl
object that is a copy
of the one provided.
aJavascriptParserImpl
- the JavascriptParserImpl
to copyMethod Detail |
---|
public void reset()
GenericParser
reset
in interface Parser
reset
in class GenericParser
protected com.google.streamhtmlparser.impl.InternalState handleEnterState(com.google.streamhtmlparser.impl.InternalState currentState, com.google.streamhtmlparser.impl.InternalState expectedNextState, char input)
GenericParser
handleEnterState
in class GenericParser
currentState
- the current state of the parserexpectedNextState
- the next state according to the
state table definitioninput
- the last character parsed
expectedNextState
providedprotected com.google.streamhtmlparser.impl.InternalState handleExitState(com.google.streamhtmlparser.impl.InternalState currentState, com.google.streamhtmlparser.impl.InternalState expectedNextState, char input)
GenericParser
handleExitState
in class GenericParser
currentState
- the current state of the parserexpectedNextState
- the next state according to the
state table definitioninput
- the last character parsed
expectedNextState
providedprotected com.google.streamhtmlparser.impl.InternalState handleInState(com.google.streamhtmlparser.impl.InternalState currentState, char input)
GenericParser
handleInState
in class GenericParser
currentState
- the current state of the parserinput
- the last character parsed
expectedNextState
provided
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |