Class ASMEmitter

java.lang.Object
org.eclipse.m2m.atl.engine.asm.ASMEmitter

public class ASMEmitter extends Object
This class is used by ATL compiler to create an ASM file.
  • Field Details

  • Constructor Details

    • ASMEmitter

      public ASMEmitter()
      Creates a new ASMEmitter.
  • Method Details

    • newASM

      public void newASM(String name)
      Wraps to ASM methods.
      Parameters:
      name - the ASM name
      See Also:
    • newUnnamedASM

      public void newUnnamedASM()
      Wraps to ASM methods.
      See Also:
    • setName

      public void setName(String name)
      Wraps to ASM methods.
      Parameters:
      name - the ASM name
      See Also:
    • addField

      public void addField(String name, String type)
      Wraps to ASM methods.
      Parameters:
      name - the ASMField name
      type - the ASMField type
      See Also:
    • finishOperation

      public void finishOperation()
      Finish the current Operation.
    • addOperation

      public void addOperation(String name)
    • addOperationWithoutLVE

      public void addOperationWithoutLVE(String name)
    • setContext

      public void setContext(String type)
    • addParameter

      public void addParameter(String name, String type)
    • addParameterWithoutLVE

      public void addParameterWithoutLVE(String name, String type)
    • beginLineNumberEntry

      public void beginLineNumberEntry(String id)
    • endLineNumberEntry

      public void endLineNumberEntry(String id)
    • addLineNumberEntry

      public void addLineNumberEntry(String id, int begin, int end)
    • beginLocalVariableEntry

      public void beginLocalVariableEntry(String id, String name)
    • endLocalVariableEntry

      public void endLocalVariableEntry(String id)
    • addLocalVariableEntry

      public void addLocalVariableEntry(int slot, String name, int begin, int end)
    • emitSimple

      public void emitSimple(String mnemonic)
    • emit

      public void emit(String mnemonic, String param)
    • emitWithoutLabel

      public void emitWithoutLabel(String mnemonic, String param)
    • getASM

      public ASM getASM()
    • setVersion

      public void setVersion(String version)
    • dumpASM

      public void dumpASM(String fileName)
      Writes the ASM to a file.
      Parameters:
      fileName - the file where to write