public class MetadataToken extends TokenBase
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, typeUNKNOWN| Constructor and Description |
|---|
MetadataToken(int tokenType,
String sourcePath,
int start,
int end,
int line,
int column,
String tokenText)
Builds a new token for Metadata
|
MetadataToken(TokenBase other) |
| 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()
Get the display string for the token type
|
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 MetadataToken(int tokenType,
String sourcePath,
int start,
int end,
int line,
int column,
String tokenText)
tokenType - type of Metadata tokenstart - start offset of the tokenend - end of tokenline - line of tokentokenText - text of tokenpublic MetadataToken(TokenBase other)
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.