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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Wraps to ASM methods.void
addLineNumberEntry
(String id, int begin, int end) void
addLocalVariableEntry
(int slot, String name, int begin, int end) void
addOperation
(String name) void
addOperationWithoutLVE
(String name) void
addParameter
(String name, String type) void
addParameterWithoutLVE
(String name, String type) void
void
beginLocalVariableEntry
(String id, String name) void
Writes theASM
to a file.void
void
emitSimple
(String mnemonic) void
emitWithoutLabel
(String mnemonic, String param) void
void
void
Finish the current Operation.getASM()
void
Wraps to ASM methods.void
Wraps to ASM methods.void
setContext
(String type) void
Wraps to ASM methods.void
setVersion
(String version)
-
Field Details
-
DIRECT_COMPILATION
- See Also:
-
-
Constructor Details
-
ASMEmitter
public ASMEmitter()Creates a newASMEmitter
.
-
-
Method Details
-
newASM
Wraps to ASM methods. -
newUnnamedASM
public void newUnnamedASM()Wraps to ASM methods.- See Also:
-
setName
Wraps to ASM methods. -
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 theASM
to a file.- Parameters:
fileName
- the file where to write
-