|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.codecoverage.v2.compiler.DefaultMethodCode
Implements the per-module interface to the method's code and marking the code. Controls the module's index and the current module's mark index for this method.
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. |
java.lang.String |
toString()
Output a friendly version of the object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public org.apache.bcel.classfile.Method getOriginalMethod()
getOriginalMethod
in interface IMethodCode
public java.lang.String getMethodName()
getMethodName
in interface IMethodCode
public java.lang.String getClassName()
getClassName
in interface IMethodCode
public int getInstructionCount()
getInstructionCount
in interface IMethodCode
public org.apache.bcel.generic.Instruction getInstructionAt(int index)
getInstructionAt
in interface IMethodCode
index
- the 0-based index of the method's instruction list
public void markInstruction(int index, IAnalysisMetaData meta)
markInstruction
in interface IMethodCode
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.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |