Class ASTExprArrayMutation
java.lang.Object
io.github.protasm.jvmud.compiler.parser.ast.ASTNode
io.github.protasm.jvmud.compiler.parser.ast.ASTExpression
io.github.protasm.jvmud.compiler.parser.ast.expr.ASTExprArrayMutation
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionASTExprArrayMutation(int line, ASTExpression target, ASTExpression index, int delta) ASTExprArrayMutation(int line, ASTExpression target, ASTExpression index, int delta, boolean prefix) Creates an indexed numeric mutation expression for prefix or postfix syntax. -
Method Summary
Methods inherited from class ASTNode
accept, className, line, setSourceOrder, sourceOrder
-
Constructor Details
-
ASTExprArrayMutation
-
ASTExprArrayMutation
public ASTExprArrayMutation(int line, ASTExpression target, ASTExpression index, int delta, boolean prefix) Creates an indexed numeric mutation expression for prefix or postfix syntax.
-
-
Method Details
-
target
-
index
-
delta
public int delta() -
isPrefix
public boolean isPrefix()Returns true when this mutation came from prefix syntax and should evaluate to the updated value. -
lpcType
- Specified by:
lpcTypein classASTExpression
-