public final class LagartoLexer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LagartoLexer.Position
Current position.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTR |
static int |
DOCTYPE |
static int |
SCRIPT
lexical states
|
static int |
STYLE |
static int |
TAG |
static int |
XML_DECLARATION |
static int |
XMP |
static int |
YYEOF
This character denotes the end of file
|
static int |
YYINITIAL |
| Constructor and Description |
|---|
LagartoLexer(java.nio.CharBuffer input) |
| Modifier and Type | Method and Description |
|---|---|
int |
column() |
LagartoLexer.Position |
currentPosition()
Calculates
current position: offset, line and column. |
int |
length() |
int |
line() |
Token |
nextToken()
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
|
int |
position() |
void |
setParseSpecialTagsAsCdata(boolean parseSpecialTagsAsCdata) |
java.lang.CharSequence |
xxtext() |
void |
yybegin(int newState)
Enters a new lexical state
|
char |
yycharat(int pos)
Returns the character at position pos from the
matched text.
|
void |
yyclose()
Closes the input stream.
|
int |
yylength()
Returns the length of the matched text region.
|
void |
yypushback(int number)
Pushes the specified amount of characters back into the input stream.
|
void |
yyreset(java.io.Reader reader)
Resets the scanner to read from a new input stream.
|
int |
yystate()
Returns the current lexical state.
|
java.lang.String |
yytext()
Returns the text matched by the current regular expression.
|
java.lang.String |
yytext(int startIndex) |
java.lang.String |
yytext(int startIndex,
int endIndexOffset) |
public static final int YYEOF
public static final int SCRIPT
public static final int YYINITIAL
public static final int STYLE
public static final int ATTR
public static final int XML_DECLARATION
public static final int XMP
public static final int TAG
public static final int DOCTYPE
public LagartoLexer.Position currentPosition()
current position: offset, line and column.public int position()
public int length()
public int line()
public int column()
public final java.lang.CharSequence xxtext()
public final java.lang.String yytext(int startIndex)
public final java.lang.String yytext(int startIndex,
int endIndexOffset)
public void setParseSpecialTagsAsCdata(boolean parseSpecialTagsAsCdata)
public final void yyclose()
throws java.io.IOException
java.io.IOExceptionpublic final void yyreset(java.io.Reader reader)
reader - the new input streampublic final int yystate()
public final void yybegin(int newState)
newState - the new lexical statepublic final java.lang.String yytext()
public final char yycharat(int pos)
pos - the position of the character to fetch.
A value from 0 to yylength()-1.public final int yylength()
public void yypushback(int number)
number - the number of characters to be read again.
This number must not be greater than yylength()!public Token nextToken() throws java.io.IOException
java.io.IOException - if any I/O-Error occursCopyright © 2003-2013 Jodd Team