Class RuntimeMapping
java.lang.Object
io.github.protasm.jvmud.compiler.runtime.RuntimeMapping
Runtime helpers for LPC mapping operations that accept legacy false sentinels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRuntime representation for a mapping entry with multiple semicolon-separated values. -
Method Summary
Modifier and TypeMethodDescriptionMerges LPC mapping operands while treating the false sentinel as an empty mapping.static ObjectmultiValue(Object... values) Wraps a mapping entry's semicolon-separated values as one Java map value.static ObjectreplaceValue(Object entry, Object index, Object value) Replaces one value slot in a multi-value mapping entry.static ObjectSelects one value slot from a possibly multi-value mapping entry.
-
Method Details
-
multiValue
-
select
-
replaceValue
Replaces one value slot in a multi-value mapping entry.- Parameters:
entry- current Java representation of the mapping entry, ornullwhen absentindex- zero-based mapping value slotvalue- replacement value- Returns:
- the updated entry representation
-
merge
-