Package gw.internal.gosu.parser
Class Token
java.lang.Object
gw.lang.parser.IToken
gw.internal.gosu.parser.Token
- Direct Known Subclasses:
PositionToken,StringToken
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) IParseTree(package private) boolean(package private) boolean(package private) boolean(package private) int(package private) int(package private) int(package private) int(package private) int(package private) int(package private) int(package private) Keyword(package private) String(package private) DocCommentBlock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignContent(String strValue, SourceCodeReader document) voidcollapse()copy()<E extends IToken>
EcopyInto(E t) (package private) Tokencreate()getAfter()intfinal KeywordintgetLine()intprotected StringgetMyTextFromSource(SourceCodeReader document) getText()intintintgetTurd()intgetType()(package private) Tokeninit(int iType, int iInvalidCharPos, int iTokenStart, int iTokenEnd, int iTokenColumn, int iLine, int iLineOffset, boolean bUnterminatedString, String strValue, Keyword keyword, boolean bAnalyzingSeparately, boolean bAnalyzingDirective, SourceCodeReader document, DocCommentBlock turd) booleanbooleanbooleanvoidsetAfter(IParseTree after) toString()
-
Field Details
-
_iType
int _iType -
_strValue
String _strValue -
_keyword
Keyword _keyword -
_iInvalidCharPos
int _iInvalidCharPos -
_iDocPosition
int _iDocPosition -
_iDocLength
int _iDocLength -
_iColumn
int _iColumn -
_iLine
int _iLine -
_iLineOffset
int _iLineOffset -
_bUnterminated
boolean _bUnterminated -
_bAnalyzingSeparately
boolean _bAnalyzingSeparately -
_bAnalyzingDirective
boolean _bAnalyzingDirective -
_turd
DocCommentBlock _turd -
_after
IParseTree _after
-
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
init
Token init(int iType, int iInvalidCharPos, int iTokenStart, int iTokenEnd, int iTokenColumn, int iLine, int iLineOffset, boolean bUnterminatedString, String strValue, Keyword keyword, boolean bAnalyzingSeparately, boolean bAnalyzingDirective, SourceCodeReader document, DocCommentBlock turd) -
copy
-
copyInto
-
create
Token create() -
collapse
public void collapse() -
assignContent
-
getTokenStart
public int getTokenStart()- Specified by:
getTokenStartin classIToken
-
getTokenEnd
public int getTokenEnd()- Specified by:
getTokenEndin classIToken
-
getTokenColumn
public int getTokenColumn()- Specified by:
getTokenColumnin classIToken
-
getLine
public int getLine() -
getLineOffset
public int getLineOffset()- Specified by:
getLineOffsetin classIToken
-
getStringValue
- Specified by:
getStringValuein classIToken
-
isValueKeyword
public boolean isValueKeyword()- Specified by:
isValueKeywordin classIToken
-
getKeyword
- Specified by:
getKeywordin classIToken
-
getInvalidCharPos
public int getInvalidCharPos()- Specified by:
getInvalidCharPosin classIToken
-
getType
public int getType() -
getText
-
setAfter
-
getAfter
-
toString
-
getMyTextFromSource
-
isAnalyzingSeparately
public boolean isAnalyzingSeparately()- Specified by:
isAnalyzingSeparatelyin classIToken
-
isAnalyzingDirective
public boolean isAnalyzingDirective()- Specified by:
isAnalyzingDirectivein classIToken
-
getTurd
-