AstNodeIndex
interface AstNodeIndex
Fields
Name | Description |
---|---|
abstract size: Int
|
|
abstract values: Set<T?>
|
Methods
get
abstract operator fun get(identifier: Identifier): T?
Parameters
Name | Description |
---|---|
identifier: Identifier
|
ReturnValue
Name | Description |
---|---|
T?
|
get
abstract operator fun get(index: Index<*>): T?
Parameters
Name | Description |
---|---|
index: Index<*>
|
ReturnValue
Name | Description |
---|---|
T?
|
get
abstract operator fun get(index: Int): T?
Parameters
Name | Description |
---|---|
index: Int
|
ReturnValue
Name | Description |
---|---|
T?
|
contains
abstract operator fun contains(node: T): Boolean
Parameters
Name | Description |
---|---|
node: T
|
ReturnValue
Name | Description |
---|---|
Boolean
|
toMutableIndex
abstract fun toMutableIndex(): MutableAstNodeIndex<T>
ReturnValue
Name | Description |
---|---|
MutableAstNodeIndex<T>
|
toImmutableIndex
abstract fun toImmutableIndex(): AstNodeIndex<T>
ReturnValue
Name | Description |
---|---|
AstNodeIndex<T>
|
any
abstract fun any(block: (T?)->Boolean): Boolean
Parameters
Name | Description |
---|---|
block: (T?)->Boolean
|
ReturnValue
Name | Description |
---|---|
Boolean
|
Zero-indexed and named-lookup table of AstNodes.