Package org.eclipse.m2m.atl.engine.asm
Class ASMEmitter
java.lang.Object
org.eclipse.m2m.atl.engine.asm.ASMEmitter
This class is used by ATL compiler to create an ASM file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWraps to ASM methods.voidaddLineNumberEntry(String id, int begin, int end) voidaddLocalVariableEntry(int slot, String name, int begin, int end) voidaddOperation(String name) voidaddOperationWithoutLVE(String name) voidaddParameter(String name, String type) voidaddParameterWithoutLVE(String name, String type) voidvoidbeginLocalVariableEntry(String id, String name) voidWrites theASMto a file.voidvoidemitSimple(String mnemonic) voidemitWithoutLabel(String mnemonic, String param) voidvoidvoidFinish the current Operation.getASM()voidWraps to ASM methods.voidWraps to ASM methods.voidsetContext(String type) voidWraps to ASM methods.voidsetVersion(String version)
-
Field Details
-
DIRECT_COMPILATION
- See Also:
-
-
Constructor Details
-
ASMEmitter
public ASMEmitter()Creates a newASMEmitter.
-
-
Method Details
-
newASM
Wraps to ASM methods.- Parameters:
name- theASMname- See Also:
-
newUnnamedASM
public void newUnnamedASM()Wraps to ASM methods.- See Also:
-
setName
Wraps to ASM methods.- Parameters:
name- theASMname- See Also:
-
addField
Wraps to ASM methods. -
finishOperation
public void finishOperation()Finish the current Operation. -
addOperation
-
addOperationWithoutLVE
-
setContext
-
addParameter
-
addParameterWithoutLVE
-
beginLineNumberEntry
-
endLineNumberEntry
-
addLineNumberEntry
-
beginLocalVariableEntry
-
endLocalVariableEntry
-
addLocalVariableEntry
-
emitSimple
-
emit
-
emitWithoutLabel
-
getASM
-
setVersion
-
dumpASM
Writes theASMto a file.- Parameters:
fileName- the file where to write
-