|
||||||||||
| 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 |
| 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<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 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 name| Method Detail |
|---|
public int getMaxLocals()
getMaxLocals in class OperationOperation.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 type
public 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)
l - the line number
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)
slot - the slot numberl - the variable index
public void setBytecodes(Bytecode[] bytecodes)
bytecodes - the bytecodes to setpublic Bytecode[] getBytecodes()
public java.lang.String 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 Operationframe - 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.lang.String toString()
toString in class java.lang.ObjectObject.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 | |||||||||