|
Jalopy 1.0b10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.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.
Fields inherited from class de.hunsicker.antlr.CommonHiddenStreamToken |
hiddenAfter, hiddenBefore |
Fields inherited from class de.hunsicker.antlr.CommonToken |
col, line, text |
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,
String text)
Creates a new ExtentedToken object. |
|
ExtendedToken(int type,
String text,
int startLine,
int startColumn,
int endLine,
int endColumn)
Creates a new ExtendedToken object. |
|
ExtendedToken(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. |
String |
getText()
Returns the text of the token. |
void |
setComment(Node comment)
Sets the comment for this token. |
void |
setText(String text)
Sets the text of the token. |
String |
toString()
{@inheritDoc} |
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, String text)
type
- type of the token.text
- text of the token.public ExtendedToken(int type, 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(String text)
text
- the text of the tokenMethod Detail |
public int getColumn()
getColumn
in class CommonToken
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()
getLine
in class CommonToken
public void setText(String text)
setText
in class CommonToken
text
- text of the token.public String getText()
getText
in class CommonToken
public String toString()
toString
in class CommonToken
|
Jalopy 1.0b10 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |