|
Jalopy 1.0b11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hunsicker.antlr.Token
de.hunsicker.antlr.CommonToken
de.hunsicker.antlr.CommonHiddenStreamToken
de.hunsicker.jalopy.language.ExtendedToken
An extended token. Stores information about the token's extent.
Field Summary |
Fields inherited from class de.hunsicker.antlr.CommonHiddenStreamToken |
hiddenAfter, hiddenBefore |
Fields inherited from class de.hunsicker.antlr.CommonToken |
col, line |
Fields inherited from class de.hunsicker.antlr.Token |
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP |
Constructor Summary | |
ExtendedToken()
Creates a new ExtentedToken object. |
|
ExtendedToken(int type,
int startLine,
int startColumn,
int endLine,
int endColumn)
Creates a new ExtendedToken object. |
|
ExtendedToken(int type,
java.lang.String text)
Creates a new ExtentedToken object. |
|
ExtendedToken(int type,
java.lang.String text,
int startLine,
int startColumn,
int endLine,
int endColumn)
Creates a new ExtendedToken object. |
|
ExtendedToken(java.lang.String text)
Creates a new ExtentedToken object. |
Method Summary | |
int |
getColumn()
Returns the starting column of the token. |
Node |
getComment()
Returns the comment that is attached to this token. |
int |
getEndColumn()
Returns the token's start column |
int |
getEndLine()
Returns the token's end line. |
int |
getLine()
Returns the starting line of the token. |
java.lang.String |
getText()
Returns the text of the token. |
void |
setComment(Node comment)
Sets the comment for this token. |
void |
setText(java.lang.String text)
Sets the text of the token. |
java.lang.String |
toString()
|
Methods inherited from class de.hunsicker.antlr.CommonHiddenStreamToken |
getHiddenAfter, getHiddenBefore, setHiddenAfter, setHiddenBefore |
Methods inherited from class de.hunsicker.antlr.CommonToken |
setColumn, setLine |
Methods inherited from class de.hunsicker.antlr.Token |
getType, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExtendedToken()
public ExtendedToken(int type, java.lang.String text)
type
- type of the token.text
- text of the token.public ExtendedToken(int type, java.lang.String text, int startLine, int startColumn, int endLine, int endColumn)
type
- text
- startLine
- startColumn
- endLine
- endColumn
- public ExtendedToken(int type, int startLine, int startColumn, int endLine, int endColumn)
type
- startLine
- startColumn
- endLine
- endColumn
- public ExtendedToken(java.lang.String text)
text
- the text of the tokenMethod Detail |
public int getColumn()
public void setComment(Node comment)
comment
- the comment to attach to this token.public Node getComment()
null
if no
comment is attached.public int getEndColumn()
public int getEndLine()
public int getLine()
public void setText(java.lang.String text)
text
- text of the token.public java.lang.String getText()
public java.lang.String toString()
|
Jalopy 1.0b11 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |