alchemist
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
alchemist
alchemist
/
it.unibo.alchemist.model.sapere.dsl.parser
/
Token
Token
open
class
Token
:
Serializable
Describes the input token stream.
Members
Constructors
Token
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
begin
Column
Link copied to clipboard
open
var
beginColumn
:
Int
The column number of the first character of this Token.
begin
Line
Link copied to clipboard
open
var
beginLine
:
Int
The line number of the first character of this Token.
end
Column
Link copied to clipboard
open
var
endColumn
:
Int
The column number of the last character of this Token.
end
Line
Link copied to clipboard
open
var
endLine
:
Int
The line number of the last character of this Token.
image
Link copied to clipboard
open
var
image
:
String
The string image of the token.
kind
Link copied to clipboard
open
var
kind
:
Int
An integer that describes the kind of this token.
next
Link copied to clipboard
open
var
next
:
Token
A reference to the next regular (non-special) token from the input stream.
special
Token
Link copied to clipboard
open
var
specialToken
:
Token
This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token.
Functions
get
Value
Link copied to clipboard
open
fun
getValue
(
)
:
Any
An optional attribute value of the Token.
new
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.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
Returns the image.