com.stimulsoft.base
Class StiToken

java.lang.Object
  extended by com.stimulsoft.base.StiToken

public class StiToken
extends java.lang.Object

Copyright Stimulsoft


Field Summary
 java.lang.Object data
          Gets or sets Value of the identifier.
 int index
          Gets or sets value indicates the beginning of token in text.
 int length
          Gets or sets value indicates the length of token.
 StiTokenType type
          Gets or sets value indicates the type of token.
 
Constructor Summary
StiToken(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, java.lang.Object obj)
          Creates an object of the type StiToken that contains an object.
StiToken(StiTokenType type, int index, int length, java.lang.String stringValue)
          Creates an object of the type StiToken that contains the value of the string.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

public int index
Gets or sets value indicates the beginning of token in text.


length

public int length
Gets or sets value indicates the length of token.


type

public StiTokenType type
Gets or sets value indicates the type of token.


data

public java.lang.Object data
Gets or sets Value of the identifier.

Constructor Detail

StiToken

public StiToken(StiTokenType type)
Create a new instance StiToken.

Parameters:
type - Type Token.

StiToken

public StiToken(StiTokenType type,
                int index,
                int length)
Creates a new object of the type StiToken.

Parameters:
type - Type Token.
index - The Beginning Token in text.
length - The Length Token.

StiToken

public StiToken(StiTokenType type,
                int index,
                int length,
                char charValue)
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

public StiToken(StiTokenType type,
                int index,
                int length,
                java.lang.String stringValue)
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

public StiToken(StiTokenType type,
                int index,
                int length,
                java.lang.Object obj)
Creates an object of the type StiToken that contains an object.

Parameters:
type - Type Token
index - The Beginning Token in text.
length - The Length Token.
obj - Object for initializing.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object