ChoicePointContext

sealed class ChoicePointContext: Any

Fields

Name Description
val isRoot: Boolean
val hasOpenAlternatives: Boolean
val pathToRoot: Sequence<ChoicePointContext>
val executionContextDepth: Int?
val executionContextProcedure: Struct?
protected abstract typeName: String
open alternatives: Cursor<Any>
open executionContext: ClassicExecutionContext?
open parent: ChoicePointContext?
open depth: Int

Methods

toString

open fun toString(): String

ReturnValue

Name Description
String

backtrack

abstract fun backtrack(context: ClassicExecutionContext): ClassicExecutionContext

Parameters

Name Description
context: ClassicExecutionContext

ReturnValue

Name Description
ClassicExecutionContext

Extensions

nextDepth

fun ChoicePointContext?.nextDepth(): Int

Receiver

Name Description
ChoicePointContext?

ReturnValue

Name Description
Int

appendPrimitives

fun ChoicePointContext?.appendPrimitives(alternatives: Cursor<Response>, executionContext: ClassicExecutionContext?): ChoicePointContext?

Receiver

Name Description
ChoicePointContext?

Parameters

Name Description
alternatives: Cursor<Response>
executionContext: ClassicExecutionContext?

ReturnValue

Name Description
ChoicePointContext?

appendRules

fun ChoicePointContext?.appendRules(alternatives: Cursor<Rule>, executionContext: ClassicExecutionContext?): ChoicePointContext?

Receiver

Name Description
ChoicePointContext?

Parameters

Name Description
alternatives: Cursor<Rule>
executionContext: ClassicExecutionContext?

ReturnValue

Name Description
ChoicePointContext?