Token

open class Token : Serializable(source)

Describes the input token stream.

Constructors

Link copied to clipboard
constructor()
No-argument constructor
constructor(kind: Int)
Constructs a new token for the specified Image.
constructor(kind: Int, image: String)
Constructs a new token for the specified Image and Kind.

Properties

Link copied to clipboard
open var beginColumn: Int
The column number of the first character of this Token.
Link copied to clipboard
open var beginLine: Int
The line number of the first character of this Token.
Link copied to clipboard
open var endColumn: Int
The column number of the last character of this Token.
Link copied to clipboard
open var endLine: Int
The line number of the last character of this Token.
Link copied to clipboard
open var image: String
The string image of the token.
Link copied to clipboard
open var kind: Int
An integer that describes the kind of this token.
Link copied to clipboard
open var next: Token
A reference to the next regular (non-special) token from the input stream.
Link copied to clipboard
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.

Functions

Link copied to clipboard
open fun getValue(): Any
An optional attribute value of the Token.
Link copied to clipboard
open fun newToken(ofKind: Int): Token

open fun newToken(ofKind: Int, image: String): Token
Returns a new Token object, by default.
Link copied to clipboard
open fun toString(): String
Returns the image.