L2Synonym

class L2Synonym(semanticValues: Collection<L2SemanticValue>) : Comparable<L2Synonym>

An L2Synonym is a set of L2SemanticValues known to represent the same value in some L2ValueManifest. The manifest at each instruction includes a set of synonyms which partition the semantic values.

Author

Mark van Gulik

Todd L Smith

Parameters

semanticValues

The non-empty collection of L2SemanticValues bound to this synonym.

Constructors

Link copied to clipboard
fun L2Synonym(semanticValues: Collection<L2SemanticValue>)

Create a synonym.

Functions

Link copied to clipboard
open operator override fun compareTo(other: L2Synonym): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun pickSemanticValue(): L2SemanticValue

Choose one of the L2SemanticValues from this L2Synonym.

Link copied to clipboard
fun semanticValues(): Set<L2SemanticValue>

Answer the immutable set of L2SemanticValues of this synonym.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun transform(semanticValueTransformer: (L2SemanticValue) -> L2SemanticValue): L2Synonym

Transform the Frames and L2SemanticValues within this synonym to produce a new synonym.