Example usage for org.aspectj.apache.bcel.generic MethodGen getConstantPool

List of usage examples for org.aspectj.apache.bcel.generic MethodGen getConstantPool

Introduction

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

Prototype

public ConstantPool getConstantPool() 

Source Link

Usage

From source file:br.jabuti.graph.datastructure.dug.CFG.java

License:Open Source License

/**
 * Construct a CFG for a given method passed as argument.
 *
 * @param mg The method for which the CFG will be created.
 * @throws InvalidInstructionException If {@link CFG#createFromCode} throws this exception
 * @throws InvalidStackArgument If {@link CFG#createFromCode} throws this exception
 *///  ww w  .  j  a v  a  2 s .c  o m
public CFG(MethodGen mg, ClassGen cl) throws InvalidInstructionException, InvalidStackArgument {
    super();
    createFromCode(mg, cl, mg.getConstantPool());
    computeDefUse();
    releaseInstructionGraph();
}