Class PresentNestedLists
java.lang.Object
org.ek9lang.compiler.ir.instructions.PresentNestedLists
THE handling of a composite's nested list that may be absent (null): an absent list is not listed
(
add(List, String, List, CompositeInstr.Activation), for CompositeInstr.nestedLists()) and stays absent when the lists are rewritten
(rewritten(List, UnaryOperator), for CompositeInstr.withNestedLists(UnaryOperator)). A composite holds one (a constant: instructions
are many) rather than repeating either step.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidadd(List<CompositeInstr.NestedList> lists, String role, List<IRInstr> instructions, CompositeInstr.Activation activation) Addinstructionstolistsas a nested list, unless it is absent.Null-safe application of a list rewrite: an absent list stays absent.
-
Constructor Details
-
PresentNestedLists
PresentNestedLists()
-
-
Method Details
-
add
void add(List<CompositeInstr.NestedList> lists, String role, List<IRInstr> instructions, CompositeInstr.Activation activation) Addinstructionstolistsas a nested list, unless it is absent. -
rewritten
-