java.lang.Object
me.topchetoeu.j2s.compilation.Node
me.topchetoeu.j2s.compilation.values.operations.AssignNode
All Implemented Interfaces:
AssignTarget, AssignTargetLike

public class AssignNode extends Node implements AssignTarget
  • Field Details

    • assignable

      public final AssignTarget assignable
    • value

      public final Node value
  • Constructor Details

    • AssignNode

      public AssignNode(me.topchetoeu.j2s.common.Location loc, AssignTarget assignable, Node value)
  • Method Details

    • compileFunctions

      public void compileFunctions(CompileResult target)
      Specified by:
      compileFunctions in class Node
    • compile

      public void compile(CompileResult target, boolean pollute)
      Overrides:
      compile in class Node
    • afterAssign

      public void afterAssign(CompileResult target, boolean pollute)
      Description copied from interface: AssignTarget
      Called to perform the actual assignemnt. Between the `beforeAssign` and this call a single value will have been pushed to the stack
      Specified by:
      afterAssign in interface AssignTarget
      pollute - Whether or not to leave the original value on the stack