Class Bytecode

java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.Bytecode

public class Bytecode extends Object
Defines the ATL VM bytecodes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Call a method.
    static final int
    Deletes an element.
    static final int
    Duplicate the top operand stack value.
    static final int
    Duplicate the top operand stack value and insert two values down.
    static final int
    Delimitate the end of iteration on collection elements.
    static final int
    Fetch a classifier.
    static final int
    Fetch field from object.
    static final int
    Fetch the asm element.
    static final int
    Branch always.
    static final int
    Branch if boolean value b is true.
    static final int
    Delimitate the beginning of iteration on collection elements.
    static final int
    Load value from local variable.
    static final int
    Creates a new element.
    static final int
    Creates a new element in the specified model.
    static final String[]
    List of codes.
    static final int
    Call a procedure (i.e., an operation with no returned value).
    static final int
    Pop the top operand stack value.
    static final int
    Push string constant.
    static final int
    Push double constant.
    static final int
    Push false boolean constant.
    static final int
    Push int constant.
    static final int
    Push true boolean constant.
    static final int
    Set field in object.
    static final int
    Store value into local variable.
    static final int
    Swap the two top operand stack values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Bytecode(String opcode)
    Bytecode constructor, for bytecodes which needs an operand.
    Bytecode(String opcode, String operand)
    Bytecode constructor, for bytecodes which needs an operand.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
    int
     
    int
     
    void
    setOperand(Object operand)
     
    void
    setValue(int value)
     
    void
    setValue2(int value2)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Bytecode

      public Bytecode(String opcode)
      Bytecode constructor, for bytecodes which needs an operand.
      Parameters:
      opcode - the bytecode name
    • Bytecode

      public Bytecode(String opcode, String operand)
      Bytecode constructor, for bytecodes which needs an operand.
      Parameters:
      opcode - the bytecode name
      operand - the operand
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • getOpcode

      public int getOpcode()
    • getOperand

      public Object getOperand()
    • setOperand

      public void setOperand(Object operand)
    • getValue

      public int getValue()
    • getValue2

      public int getValue2()
    • setValue2

      public void setValue2(int value2)
    • setValue

      public void setValue(int value)