public class ASDocToken extends TokenBase
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
UNKNOWN
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, verify
public ASDocToken(int tokenType, int start, int end, int line, int column, CharSequence tokenText)
public ICMToken changeType(int type)
ICMToken
type
- the type of token to createICMToken
that is a copy of the original, with a different typeprotected String getTypeString()
getTypeString
in class TokenBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.