|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.thirdparty.streamhtmlparser.impl.GenericParser
com.google.gwt.thirdparty.streamhtmlparser.impl.JavascriptParserImpl
public class JavascriptParserImpl
Many comments copied almost verbatim from the original C version.
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.thirdparty.streamhtmlparser.impl.GenericParser |
|---|
columnNumber, currentState, initialState, intToExtStateTable, lineNumber, parserStateTable |
| Fields inherited from interface com.google.gwt.thirdparty.streamhtmlparser.JavascriptParser |
|---|
STATE_COMMENT, STATE_DQ, STATE_Q, STATE_REGEXP, STATE_TEXT |
| Fields inherited from interface com.google.gwt.thirdparty.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.gwt.thirdparty.streamhtmlparser.impl.InternalState |
handleEnterState(com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState currentState,
com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState expectedNextState,
char input)
Invoked when the parser enters a new state. |
protected com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState |
handleExitState(com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState currentState,
com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState expectedNextState,
char input)
Invoked when the parser exits a state. |
protected com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState |
handleInState(com.google.gwt.thirdparty.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.gwt.thirdparty.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.gwt.thirdparty.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 copy| Method Detail |
|---|
public void reset()
GenericParser
reset in interface Parserreset in class GenericParser
protected com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState handleEnterState(com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState currentState,
com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState expectedNextState,
char input)
GenericParser
handleEnterState in class GenericParsercurrentState - the current state of the parserexpectedNextState - the next state according to the
state table definitioninput - the last character parsed
expectedNextState provided
protected com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState handleExitState(com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState currentState,
com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState expectedNextState,
char input)
GenericParser
handleExitState in class GenericParsercurrentState - the current state of the parserexpectedNextState - the next state according to the
state table definitioninput - the last character parsed
expectedNextState provided
protected com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState handleInState(com.google.gwt.thirdparty.streamhtmlparser.impl.InternalState currentState,
char input)
GenericParser
handleInState in class GenericParsercurrentState - 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 | |||||||||