Package gw.internal.gosu.parser
Class Token
- java.lang.Object
-
- gw.lang.parser.IToken
-
- gw.internal.gosu.parser.Token
-
- Direct Known Subclasses:
PositionToken
,StringToken
public class Token extends IToken
-
-
Constructor Summary
Constructors Constructor Description Token()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assignContent(String strValue, SourceCodeReader document)
void
collapse()
IToken
copy()
<E extends IToken>
EcopyInto(E t)
IParseTree
getAfter()
int
getInvalidCharPos()
Keyword
getKeyword()
int
getLine()
int
getLineOffset()
protected String
getMyTextFromSource(SourceCodeReader document)
String
getStringValue()
String
getText()
int
getTokenColumn()
int
getTokenEnd()
int
getTokenStart()
DocCommentBlock
getTurd()
int
getType()
boolean
isAnalyzingDirective()
boolean
isAnalyzingSeparately()
boolean
isValueKeyword()
void
setAfter(IParseTree after)
String
toString()
-
-
-
Method Detail
-
assignContent
protected void assignContent(String strValue, SourceCodeReader document)
-
getTokenStart
public int getTokenStart()
- Specified by:
getTokenStart
in classIToken
-
getTokenEnd
public int getTokenEnd()
- Specified by:
getTokenEnd
in classIToken
-
getTokenColumn
public int getTokenColumn()
- Specified by:
getTokenColumn
in classIToken
-
getLineOffset
public int getLineOffset()
- Specified by:
getLineOffset
in classIToken
-
getStringValue
public String getStringValue()
- Specified by:
getStringValue
in classIToken
-
isValueKeyword
public boolean isValueKeyword()
- Specified by:
isValueKeyword
in classIToken
-
getKeyword
public final Keyword getKeyword()
- Specified by:
getKeyword
in classIToken
-
getInvalidCharPos
public int getInvalidCharPos()
- Specified by:
getInvalidCharPos
in classIToken
-
setAfter
public void setAfter(IParseTree after)
-
getAfter
public IParseTree getAfter()
-
getMyTextFromSource
protected String getMyTextFromSource(SourceCodeReader document)
-
isAnalyzingSeparately
public boolean isAnalyzingSeparately()
- Specified by:
isAnalyzingSeparately
in classIToken
-
isAnalyzingDirective
public boolean isAnalyzingDirective()
- Specified by:
isAnalyzingDirective
in classIToken
-
getTurd
public DocCommentBlock getTurd()
-
-