toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.shasambly.shasp
/
com.shakelang.shake.shasambly.shasp.lexer.token
/
ShasPTokenBasedInputStream
Shas
PToken
Based
Input
Stream
class
ShasPTokenBasedInputStream
(
tokens
:
Array
<
ShasPToken
>
,
map
:
PositionMap
)
:
TokenBasedTokenInputStream
<
ShasPTokenType
,
ShasPToken
>
,
ShasPTokenInputStream
(
source
)
Members
Constructors
Shas
PToken
Based
Input
Stream
Link copied to clipboard
constructor
(
tokens
:
Array
<
ShasPToken
>
,
map
:
PositionMap
)
Properties
actual
Link copied to clipboard
abstract
val
actual
:
ShasPToken
actual
End
Link copied to clipboard
open
val
actualEnd
:
Int
actual
Has
Value
Link copied to clipboard
open
val
actualHasValue
:
Boolean
actual
Start
Link copied to clipboard
open
val
actualStart
:
Int
actual
Type
Link copied to clipboard
open
val
actualType
:
ShasPTokenType
actual
Value
Link copied to clipboard
open
val
actualValue
:
String
?
map
Link copied to clipboard
abstract
val
map
:
PositionMap
position
Link copied to clipboard
abstract
val
position
:
Int
size
Link copied to clipboard
abstract
val
size
:
Int
source
Link copied to clipboard
abstract
val
source
:
String
tokens
Link copied to clipboard
open
val
tokens
:
Array
<
ShasPToken
>
Functions
get
Link copied to clipboard
open
operator
fun
get
(
position
:
Int
)
:
ShasPToken
get
End
Link copied to clipboard
open
fun
getEnd
(
position
:
Int
)
:
Int
get
Has
Value
Link copied to clipboard
open
fun
getHasValue
(
position
:
Int
)
:
Boolean
get
Start
Link copied to clipboard
open
fun
getStart
(
position
:
Int
)
:
Int
get
Type
Link copied to clipboard
open
fun
getType
(
position
:
Int
)
:
ShasPTokenType
get
Value
Link copied to clipboard
open
fun
getValue
(
position
:
Int
)
:
String
?
has
Link copied to clipboard
abstract
fun
has
(
num
:
Int
)
:
Boolean
has
Next
Link copied to clipboard
open
operator
fun
hasNext
(
)
:
Boolean
next
Link copied to clipboard
open
operator
fun
next
(
)
:
ShasPToken
next
Type
Link copied to clipboard
open
fun
nextType
(
)
:
ShasPTokenType
next
Value
Link copied to clipboard
open
fun
nextValue
(
)
:
String
?
peek
Link copied to clipboard
open
fun
peek
(
)
:
ShasPToken
abstract
fun
peek
(
offset
:
Int
)
:
ShasPToken
peek
End
Link copied to clipboard
open
fun
peekEnd
(
)
:
Int
open
fun
peekEnd
(
offset
:
Int
)
:
Int
peek
Has
Value
Link copied to clipboard
open
fun
peekHasValue
(
)
:
Boolean
open
fun
peekHasValue
(
offset
:
Int
)
:
Boolean
peek
Start
Link copied to clipboard
open
fun
peekStart
(
)
:
Int
open
fun
peekStart
(
offset
:
Int
)
:
Int
peek
Type
Link copied to clipboard
open
fun
peekType
(
)
:
ShasPTokenType
open
fun
peekType
(
offset
:
Int
)
:
ShasPTokenType
peek
Value
Link copied to clipboard
open
fun
peekValue
(
)
:
String
?
open
fun
peekValue
(
offset
:
Int
)
:
String
?
reset
Link copied to clipboard
fun
reset
(
)
skip
Link copied to clipboard
abstract
fun
skip
(
)
abstract
fun
skip
(
amount
:
Int
)