|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.parser.AbstractLexer.DefaultLexerToken
protected static class AbstractLexer.DefaultLexerToken
The DefaultLexerToken just implements a basic
LexerToken which stores a token and start/end offsets.
| Field Summary | |
|---|---|
protected int |
endOffset
The ending offset in the text buffer of this token. |
protected int |
startOffset
The starting offset in the text buffer of this token. |
protected int |
token
The token that was found. |
| Constructor Summary | |
|---|---|
protected |
AbstractLexer.DefaultLexerToken()
|
| Method Summary | |
|---|---|
int |
getEndOffset()
Fetches the end offset of the token (offset relative to the original ReadTextBuffer being lexed. |
int |
getStartOffset()
Fetches the start offset of the token (offset relative to the original ReadTextBuffer being lexed. |
int |
getToken()
Fetches the (language-specific) token represented by this LexerToken. |
void |
setEndOffset(int end)
Sets the end offset for this token. |
void |
setStartOffset(int start)
Sets the starting offset for this token. |
void |
setToken(int token)
Set the token of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int token
protected int startOffset
protected int endOffset
| Constructor Detail |
|---|
protected AbstractLexer.DefaultLexerToken()
| Method Detail |
|---|
public int getToken()
LexerToken. You must refer to the language-specific
Lexer that was responsible for filling this
LexerToken instance to interpret the token.
getToken in interface LexerTokenpublic void setToken(int token)
token - the token to setpublic int getStartOffset()
ReadTextBuffer being lexed. Note that the
start offset is inclusive (compare to end offset which is
exclusive), to match the behavior in the String
class.
getStartOffset in interface LexerTokenpublic void setStartOffset(int start)
start - the starting offsetpublic int getEndOffset()
ReadTextBuffer being lexed. Note that the end offset is
exclusive (similar to end offsets in the String class.)
getEndOffset in interface LexerTokenpublic void setEndOffset(int end)
end - the ending offset
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||