Свойство | Type | Description | |
---|---|---|---|
BeginLine | int | ||
Image | String | ||
Kind | int | ||
Next | |||
SpecialToken |
Méthode | Description | |
---|---|---|
NewToken ( int ofKind ) : |
Returns a new Token object, by default. However, if you want, you can create and return subclass objects based on the value of ofKind. Simply add the cases to the switch for all those special cases. For example, if you have a subclass of Token called IDToken that you want to create if ofKind is ID, simply add something like :
|
|
ToString ( ) : String |
Returns the image.
|
public static NewToken ( int ofKind ) : |
||
ofKind | int | |
Résultat |