public class ASDocToken extends TokenBase
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, typeUNKNOWN| Constructor and Description |
|---|
ASDocToken(int tokenType,
int start,
int end,
int line,
int column,
CharSequence tokenText) |
| Modifier and Type | Method and Description |
|---|---|
ICMToken |
changeType(int type)
Changes the type of the token, and returns a new copy with the desired type.
|
protected String |
getTypeString() |
adjustLocation, adjustOffsets, getAbsoluteEnd, getAbsoluteStart, getCharSequence, getColumn, getEnd, getEndColumn, getEndLine, getLine, getLocalEnd, getLocalStart, getSourcePath, getStart, getText, isImplicit, isLocked, lock, matchesLine, reuse, setColumn, setEnd, setEndColumn, setEndLine, setLine, setLocation, setSourcePath, setStart, setText, setText, storeLocalOffset, toDumpString, toString, truncate, verifypublic ASDocToken(int tokenType,
int start,
int end,
int line,
int column,
CharSequence tokenText)
public ICMToken changeType(int type)
ICMTokentype - the type of token to createICMToken that is a copy of the original, with a different typeprotected String getTypeString()
getTypeString in class TokenBaseCopyright © 2016 The Apache Software Foundation. All rights reserved.