Stack

open class Stack(prefix: String?)(source)

This is the base stack object used in the compiled io.kweb.util.Template.

This superclass is used only for the head and tail node, which allows us to limit the number of null checks by ensuring regular nodes never have null pointers.

Author

"James X. Nelson (james@wetheinter.net)"

Inheritors

Constructors

Link copied to clipboard
constructor(prefix: String?)

Properties

Link copied to clipboard
var next: Stack?
Link copied to clipboard

Functions

Link copied to clipboard
open fun apply(vararg values: String?): String
Link copied to clipboard
fun push(prefix: String?, pos: Int): Stack

Pushes a string constant and a pointer to a token's replacement position onto stack.