DowngradeNode

sealed class DowngradeNode : PureExpressionNode

Reducing the confidentiality or increasing the integrity of the result of an expression.

Functions

copy
Link copied to clipboard
abstract override fun copy(children: List<Node>): DowngradeNode

Returns a shallow copy of this node where the child nodes are replaced by children.

toDocument
Link copied to clipboard
override fun toDocument(): Document
toDocumentWithMetadata
Link copied to clipboard
fun toDocumentWithMetadata(metadata: Metadata): Document

Returns a pretty representation of this Node where each descendant is decorated using metadata.

toSurfaceNode
Link copied to clipboard
abstract fun toSurfaceNode(): ExpressionNode

override fun toSurfaceNode(metadata: Metadata): ExpressionNode

Returns a representation of this node in the surface syntax.

Properties

children
Link copied to clipboard
override val children: Iterable<AtomicExpressionNode>
expression
Link copied to clipboard
abstract val expression: AtomicExpressionNode

Expression whose label is being downgraded.

fromLabel
Link copied to clipboard
abstract val fromLabel: LabelNode?

The label expression must have before the downgrade.

sourceLocation
Link copied to clipboard
abstract val sourceLocation: SourceLocation
toLabel
Link copied to clipboard
abstract val toLabel: LabelNode?

The label after the downgrade.

Inheritors

DeclassificationNode
Link copied to clipboard
EndorsementNode
Link copied to clipboard