|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains the BCEL bytecode for a method, and provides helper methods for generating the marks for certain bytecode instructions.
Method Summary | |
java.lang.String |
getClassName()
A helper to get the class name. |
org.apache.bcel.generic.Instruction |
getInstructionAt(int index)
Returns the bytecode instruction at the given index. |
int |
getInstructionCount()
Returns the number of bytecode instructions in the method. |
java.lang.String |
getMethodName()
A helper to get the method name. |
org.apache.bcel.classfile.Method |
getOriginalMethod()
Returns the original BCEL Method object. |
void |
markInstruction(int index,
IAnalysisMetaData meta)
Marks an instruction for coverage analysis. |
Method Detail |
public org.apache.bcel.classfile.Method getOriginalMethod()
public java.lang.String getMethodName()
public java.lang.String getClassName()
public int getInstructionCount()
public org.apache.bcel.generic.Instruction getInstructionAt(int index)
index
- the 0-based index of the method's instruction list
public void markInstruction(int index, IAnalysisMetaData meta)
index
- the 0-based index of the method's instruction listmeta
- meta-data the analysis module records in association with
the mark. This cannot be null.
java.lang.IllegalArgumentException
- if meta is null.
java.lang.IndexOutOfBoundsException
- if index is not within
the valid range.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |