Package com.stimulsoft.base
Class StiToken
java.lang.Object
com.stimulsoft.base.StiToken
Copyright Stimulsoft
-
Field Summary
FieldsModifier and TypeFieldDescriptionGets or sets Value of the identifier.static StiTokenintGets or sets value indicates the beginning of token in text.intGets or sets value indicates the length of token.Gets or sets value indicates the type of token. -
Constructor Summary
ConstructorsConstructorDescriptionStiToken(StiTokenType type) Create a new instance StiToken.StiToken(StiTokenType type, int index, int length) Creates a new object of the type StiToken.StiToken(StiTokenType type, int index, int length, char charValue) Creates a new object of the type StiToken.StiToken(StiTokenType type, int index, int length, Object obj) Creates an object of the type StiToken that contains an object.StiToken(StiTokenType type, int index, int length, String stringValue) Creates an object of the type StiToken that contains the value of the string. -
Method Summary
-
Field Details
-
EOF
-
index
public int indexGets or sets value indicates the beginning of token in text. -
length
public int lengthGets or sets value indicates the length of token. -
type
Gets or sets value indicates the type of token. -
data
Gets or sets Value of the identifier.
-
-
Constructor Details
-
StiToken
Create a new instance StiToken.- Parameters:
type- type Token.
-
StiToken
Creates a new object of the type StiToken.- Parameters:
type- type Token.index- The Beginning Token in text.length- The Length Token.
-
StiToken
Creates a new object of the type StiToken.- Parameters:
type- type Token.index- The Beginning Token in text.length- The Length Token.charValue- Char for initializing
-
StiToken
Creates an object of the type StiToken that contains the value of the string.- Parameters:
type- type Token.index- The Beginning Token in text.length- The Length Token.stringValue- String for initializing.
-
StiToken
Creates an object of the type StiToken that contains an object.- Parameters:
type- type Tokenindex- The Beginning Token in text.length- The Length Token.obj- Object for initializing.
-
-
Method Details
-
isKeyword
public boolean isKeyword() -
isKeyword
-
isIdent
public boolean isIdent() -
isIdent
-
IsIdentOrKeyword
public boolean IsIdentOrKeyword() -
IsAssign
public boolean IsAssign() -
IsDot
public boolean IsDot() -
IsLBrace
public boolean IsLBrace() -
IsRBrace
public boolean IsRBrace() -
IsLBracket
public boolean IsLBracket() -
IsRBracket
public boolean IsRBracket() -
IsLPar
public boolean IsLPar() -
IsRPar
public boolean IsRPar() -
getDataAsString
-
toString
-