Interface AssignTarget
- All Superinterfaces:
AssignTargetLike
- All Known Subinterfaces:
ChangeTarget
- All Known Implementing Classes:
AssignNode
,IndexNode
,VariableNode
Represents all nodes that can be assign targets
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterAssign
(CompileResult target, boolean pollute) Called to perform the actual assignemnt.default void
assign
(CompileResult target, boolean pollute) default void
beforeAssign
(CompileResult target) Called to perform calculations before the assigned value is calculatedme.topchetoeu.j2s.common.Location
loc()
default AssignTarget
-
Method Details
-
loc
me.topchetoeu.j2s.common.Location loc() -
beforeAssign
Called to perform calculations before the assigned value is calculated -
afterAssign
Called to perform the actual assignemnt. Between the `beforeAssign` and this call a single value will have been pushed to the stack- Parameters:
pollute
- Whether or not to leave the original value on the stack
-
assign
-
toAssignTarget
- Specified by:
toAssignTarget
in interfaceAssignTargetLike
-