Example usage for org.aspectj.apache.bcel.generic InstructionList getLength

List of usage examples for org.aspectj.apache.bcel.generic InstructionList getLength

Introduction

In this page you can find the example usage for org.aspectj.apache.bcel.generic InstructionList getLength.

Prototype

public int getLength() 

Source Link

Usage

From source file:br.jabuti.metrics.AbstractMetric.java

License:Open Source License

protected final double getNumberOfBytecodeInstructions(MethodGen mg) {
    InstructionList il = mg.getInstructionList();
    if (il == null)
        return 0.0;
    return (double) il.getLength();
}