Method Summary |
|
public boolean | canEnter(ThreadInfo th) |
public Object | clone() |
MethodInfo | createNativeCallStub() |
public void | enter(ThreadInfo th) |
public Instruction | execute(ThreadInfo ti, boolean isDirectCall) execute this method, which might be either bytecode or native. |
public byte[] | getArgumentTypes() |
public int | getArgumentsSize() |
public ElementInfo | getBlockedObject(ThreadInfo th, boolean isBeforeCall) |
public ClassInfo | getClassInfo() Returns the class the method belongs to. |
public String | getCompleteName() Return the complete name of the method, including the class name. |
public ExceptionHandler[] | getExceptions() |
public String | getFullName() Returns the full name of the method, name and signature. |
public Instruction | getInstruction(int i) Returns a specific instruction. |
public Instruction | getInstructionAt(int position) Returns the instruction at a certain position. |
public Instruction[] | getInstructions() Returns the instructions of the method. |
public int | getLineNumber(Instruction pc) Returns the line number for a given position. |
public int[] | getLineNumbers() Returns a table to translate positions into line numbers. |
public String[] | getLocalVariableNames() |
public String[] | getLocalVariableTypes() |
public int | getMaxLocals() |
public static int | getMaxLocals(Method m) |
public int | getMaxStack() |
public static int | getMaxStack(Method m) |
public String | getName() Returns the name of the method. |
public int | getNumberOfArguments() |
public int | getNumberOfStackArguments() Returns the size of the arguments.
This returns the number of parameters passed on the stack, incl. |
public byte | getReturnType() |
public String | getSignature() Returns the signature of the method. |
public static String | getUniqueName(String mname, String signature) |
public String | getUniqueName() |
public boolean | isAtomic() |
public boolean | isBodySchedulingRelevant(ThreadInfo ti, ElementInfo ei) |
public boolean | isCtor() |
public boolean | isDeterministic(ThreadInfo ti) |
public boolean | isExecutable(ThreadInfo ti) |
public boolean | isInternalMethod() |
public boolean | isMJI() |
public boolean | isNative() |
public boolean | isReferenceReturnType() |
public boolean | isSchedulingRelevant(ThreadInfo ti, ElementInfo ei) |
public boolean | isStatic() Returns true if the field is static. |
public boolean | isSynchronized() Returns true if the field is synchronized. |
public boolean | isThreadEntry(ThreadInfo ti) |
public void | leave(ThreadInfo th) |
protected Instruction[] | loadCode(Method m) Loads the code of the method. |
protected ExceptionHandler[] | loadExceptions(Method m) Returns the exceptions of the method. |
protected int[] | loadLineNumbers(Method m) Loads the line numbers for the method. |
protected String[] | loadLocalVariableNames(Method m) Loads the names of the local variables.
NOTE: BCEL only gives us a list of all *named* locals, which might not
include all local vars (temporaries, like StringBuffer). |
protected String[] | loadLocalVariableTypes(Method m) Loads the types of the local variables. |
public static MethodInfo | newInstance(Method m, ClassInfo c) |
public static MethodInfo[] | newInstanceArray(int length) |
void | setAtomic(boolean isAtomic) |
void | setCondDeterministic(boolean isCondDeterministic) |
void | setCondExecutable(boolean isCondExecutable) |
void | setDeterministic(boolean isDeterministic) |
void | setMJI(boolean isMJI) |
void | setSchedulingRelevance(int sr) |