|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.engine.emfvm.lib.Operation
org.eclipse.m2m.atl.engine.emfvm.ASMOperation
public class ASMOperation
ASM commands scheduler.
Field Summary | |
---|---|
static int |
MAX_STACK
The max size of the Stack. |
Fields inherited from class org.eclipse.m2m.atl.engine.emfvm.lib.Operation |
---|
maxLocals, name |
Constructor Summary | |
---|---|
ASMOperation(ASM asm,
java.lang.String name)
ASMOperation constructor. |
Method Summary | |
---|---|
void |
addLineNumberEntry(java.lang.String id,
int begin,
int end)
Adds a line number entry. |
void |
addLocalVariableEntry(int slot,
java.lang.String variableName,
int begin,
int end)
Adds a local variable entry with the given parameters. |
void |
addParameter(java.lang.String parameterName,
java.lang.String type)
Adds a parameter. |
java.lang.Object |
exec(AbstractStackFrame frame)
Executes an operation. |
java.lang.Object |
exec(AbstractStackFrame frame,
org.eclipse.core.runtime.IProgressMonitor monitor)
Executes an operation. |
protected static java.lang.reflect.Method |
findMethod(java.lang.Class<?> caller,
java.lang.String name,
java.lang.Class<?>[] argumentTypes)
Looks for a method into cache and metamodel. |
ASM |
getASM()
|
Bytecode[] |
getBytecodes()
Returns the bytecodes. |
java.lang.String |
getContext()
|
java.util.List<?> |
getInstructions()
|
java.util.List<org.eclipse.m2m.atl.engine.emfvm.ASMOperation.LineNumberEntry> |
getLineNumberTable()
|
java.util.List<org.eclipse.m2m.atl.engine.emfvm.ASMOperation.LocalVariableEntry> |
getLocalVariableTable()
|
int |
getMaxLocals()
|
java.lang.String |
getName()
|
java.util.List<java.lang.String> |
getParameters()
|
java.lang.String |
resolveLineNumber(int l)
Returns the line at the specified number. |
java.lang.String |
resolveVariableName(int slot,
int l)
Resolves a variable name by its slot number and its index. |
void |
setBytecodes(Bytecode[] bytecodes)
Sets the bytecodes for the operation. |
void |
setContext(java.lang.String context)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.m2m.atl.engine.emfvm.lib.Operation |
---|
setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_STACK
Constructor Detail |
---|
public ASMOperation(ASM asm, java.lang.String name)
asm
- the parent asmname
- operation nameMethod Detail |
---|
public int getMaxLocals()
getMaxLocals
in class Operation
Operation.getMaxLocals()
public java.util.List<java.lang.String> getParameters()
public void setContext(java.lang.String context)
public java.lang.String getContext()
public void addParameter(java.lang.String parameterName, java.lang.String type)
parameterName
- the parameter nametype
- the parameter typepublic void addLineNumberEntry(java.lang.String id, int begin, int end)
id
- the parameter idbegin
- the begin indexend
- the end indexpublic java.util.List<org.eclipse.m2m.atl.engine.emfvm.ASMOperation.LineNumberEntry> getLineNumberTable()
public java.lang.String resolveLineNumber(int l)
resolveLineNumber
in class Operation
l
- the line number
Operation.resolveLineNumber(int)
public void addLocalVariableEntry(int slot, java.lang.String variableName, int begin, int end)
slot
- the slot numbervariableName
- the variable namebegin
- the begin indexend
- the end indexpublic java.util.List<org.eclipse.m2m.atl.engine.emfvm.ASMOperation.LocalVariableEntry> getLocalVariableTable()
public java.lang.String resolveVariableName(int slot, int l)
resolveVariableName
in class Operation
slot
- the slot numberl
- the variable index
Operation.resolveVariableName(int, int)
public void setBytecodes(Bytecode[] bytecodes)
bytecodes
- the bytecodes to setpublic Bytecode[] getBytecodes()
public java.lang.String getName()
getName
in class Operation
Operation.getName()
public java.lang.Object exec(AbstractStackFrame frame, org.eclipse.core.runtime.IProgressMonitor monitor)
frame
- the frame for executionmonitor
- the progress monitor
public java.lang.Object exec(AbstractStackFrame frame)
exec
in class Operation
frame
- the frame for execution
Operation.exec(org.eclipse.m2m.atl.engine.emfvm.lib.AbstractStackFrame)
public ASM getASM()
protected static java.lang.reflect.Method findMethod(java.lang.Class<?> caller, java.lang.String name, java.lang.Class<?>[] argumentTypes)
caller
- The class of the methodname
- The method nameargumentTypes
- The types of all arguments
public java.util.List<?> getInstructions()
getInstructions
in class Operation
Operation.getInstructions()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |