Class IRArrayMutation
java.lang.Object
io.github.protasm.jvmud.compiler.ir.IRArrayMutation
- All Implemented Interfaces:
IRExpression, IRNode
-
Constructor Summary
ConstructorsConstructorDescriptionIRArrayMutation(int line, IRExpression array, IRExpression index, int delta, boolean prefix, RuntimeType type) Creates an indexed numeric mutation that can return either postfix old value or prefix new value.IRArrayMutation(int line, IRExpression array, IRExpression index, int delta, RuntimeType type) -
Method Summary
-
Constructor Details
-
IRArrayMutation
public IRArrayMutation(int line, IRExpression array, IRExpression index, int delta, RuntimeType type) -
IRArrayMutation
public IRArrayMutation(int line, IRExpression array, IRExpression index, int delta, boolean prefix, RuntimeType type) Creates an indexed numeric mutation that can return either postfix old value or prefix new value.
-
-
Method Details
-
line
-
array
-
index
-
delta
public int delta() -
isPrefix
public boolean isPrefix()Returns true when the expression should evaluate to the updated indexed value. -
type
- Specified by:
typein interfaceIRExpression
-