public class SourceParser
extends java.lang.Object
| Constructor and Description |
|---|
SourceParser() |
| Modifier and Type | Method and Description |
|---|---|
ParserState |
changeState(ParserState state)
Change the current state.
|
int |
countImportLines()
Return the number of import lines.
|
int |
getLineNumber()
Return the current line number.
|
int |
getOffset()
Return the offset.
|
SourceModel |
getSourceModel() |
protected SourceModel |
parse(java.lang.String scriptContent,
boolean hasSingletonMethod,
ParserState defaultState)
Parse the script content.
|
void |
setImportLines(int importLines)
Set the number of import lines.
|
void |
setOffset(int offset)
Set the offset.
|
public SourceModel getSourceModel()
public ParserState changeState(ParserState state)
state - the current ParserStatepublic void setOffset(int offset)
offset - the offsetpublic int getOffset()
public void setImportLines(int importLines)
importLines - the number of import linespublic int countImportLines()
public int getLineNumber()
protected SourceModel parse(java.lang.String scriptContent, boolean hasSingletonMethod, ParserState defaultState)
scriptContent - the script contenthasSingletonMethod - true if there is a singleton methoddefaultState - the default initial stateCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence