UnCompiledNode

class UnCompiledNode<T>(val owner: FSTCompiler<T>, depth: Int) : FSTCompiler.Node

Expert: holds a pending (seen but not yet serialized) Node.

Constructors

Link copied to clipboard
constructor(owner: FSTCompiler<T>, depth: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val depth: Int

This node's depth, starting from the automaton root.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var output: T
Link copied to clipboard

Functions

Link copied to clipboard
fun addArc(label: Int, target: FSTCompiler.Node)
Link copied to clipboard
fun clear()
Link copied to clipboard
fun getLastOutput(labelToMatch: Int): T?
Link copied to clipboard
open override fun isCompiled(): Boolean
Link copied to clipboard
fun prependOutput(outputPrefix: T)
Link copied to clipboard
fun replaceLast(labelToMatch: Int, target: FSTCompiler.Node, nextFinalOutput: T, isFinal: Boolean)
Link copied to clipboard
fun setLastOutput(labelToMatch: Int, newOutput: T)