StringToken

class StringToken<out T>(type: T, value: String, section: Section) : Token<T>

A subclass of Token which holds a String as its value.

Author

An Tran, AdrianTodt

See also

Parameters

T

The type of the token.

type

The type of the token.

value

The value of this token.

section

The section of this token.

Constructors

StringToken
Link copied to clipboard
common
fun <out T> StringToken(type: T, value: String, section: Section)

Functions

equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
span
Link copied to clipboard
common
open fun span(other: Sectional): Section?

Creates a section which spans across this and another section.

toString
Link copied to clipboard
common
open override fun toString(): String

Returns a string representation of the token.

Properties

section
Link copied to clipboard
common
open override val section: Section?

The section of this token.

type
Link copied to clipboard
common
val type: T

The type of this token.

value
Link copied to clipboard
common
val value: String