Uses of Enum Class
org.ek9lang.compiler.ir.instructions.OwnershipInstr.AssignMode
Packages that use OwnershipInstr.AssignMode
Package
Description
IR Instruction Classes - The instruction set for EK9 intermediate representation.
-
Uses of OwnershipInstr.AssignMode in org.ek9lang.compiler.ir.instructions
Subclasses with type arguments of type OwnershipInstr.AssignMode in org.ek9lang.compiler.ir.instructionsModifier and TypeClassDescriptionstatic enumHow a slot or field assignment takes its value.Methods in org.ek9lang.compiler.ir.instructions that return OwnershipInstr.AssignModeModifier and TypeMethodDescriptionOwnershipInstr.getMode()CONSUME or COPY for an assignment; null otherwise.static OwnershipInstr.AssignModeReturns the enum constant of this class with the specified name.static OwnershipInstr.AssignMode[]OwnershipInstr.AssignMode.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.ek9lang.compiler.ir.instructions with parameters of type OwnershipInstr.AssignModeModifier and TypeMethodDescriptionstatic OwnershipInstrOwnershipInstr.fieldAssign(String objectVar, String fieldName, String ownerType, String fieldType, String value, int fieldIndex, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) FIELD_ASSIGN object, field, ownerType, fieldType, value, index [consume|copy] [init]: drop the field's value and store the new one.static OwnershipInstrOwnershipInstr.slotAssign(String slot, String value, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) SLOT_ASSIGN slot, value [consume|copy] [init]: drop the slot's value (unlessinit- a fact that it is empty) and store the new one.static OwnershipInstrOwnershipInstr.staticFieldAssign(String fieldName, String ownerType, String fieldType, String value, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) STATIC_FIELD_ASSIGN field, ownerType, fieldType, value [consume|copy] [init]: store into a static field, described exactly asSTORE_STATIC_FIELDdescribes it. -
Uses of OwnershipInstr.AssignMode in org.ek9lang.compiler.phase7.support
Methods in org.ek9lang.compiler.phase7.support with parameters of type OwnershipInstr.AssignModeModifier and TypeMethodDescriptionVariableMemoryManagement.fieldAssigned(FieldTarget field, String value, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) THE store of a value into an object's FIELD (family 6): drop the field's old value and store the new one -[copy]takes the field's own reference to a value something else still owns,[consume]moves an owned value in;initis the fact that the field is empty here (a constructor's first store), so there is nothing to drop.