| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-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 | endOffsetThe ending offset in the text buffer of this token. | 
| protected  int | startOffsetThe starting offset in the text buffer of this token. | 
| protected  int | tokenThe 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 ReadTextBufferbeing lexed. | 
|  int | getStartOffset()Fetches the start offset of the token (offset relative to the original ReadTextBufferbeing 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 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||