Stack

open class Stack(prefix: String?)

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)"

Constructors

Stack
Link copied to clipboard
fun Stack(prefix: String?)

Functions

apply
Link copied to clipboard
open fun apply(vararg values: String?): String
push
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.

Properties

next
Link copied to clipboard
var next: Stack? = null
prefix
Link copied to clipboard
val prefix: String?

Inheritors

Template
Link copied to clipboard