# Uses of Class
org.apache.bcel.generic.MethodGen

Packages that use MethodGen
Package
Description
org.apache.bcel.generic
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.
org.apache.bcel.verifier.structurals
A PassVerifier class mostly used internally by JustIce, yielding a control flow graph for public use as a nice side effect.

- ## Uses of MethodGen in org.apache.bcel.generic

  Methods in org.apache.bcel.generic that return MethodGen
  Modifier and Type
  Method
  Description
  `MethodGen`
  MethodGen.`copy(String className, ConstantPoolGen cp)`
  Creates a deep copy of this method.
  Methods in org.apache.bcel.generic with parameters of type MethodGen
  Modifier and Type
  Method
  Description
  `int`
  ConstantPoolGen.`addInterfaceMethodref(MethodGen method)`
  Adds a new InterfaceMethodref constant to the ConstantPool.
  `int`
  ConstantPoolGen.`addMethodref(MethodGen method)`
  Adds a new Methodref constant to the ConstantPool.
  `int`
  ConstantPoolGen.`lookupInterfaceMethodref(MethodGen method)`
  Looks up an InterfaceMethodref in the ConstantPool.
  `int`
  ConstantPoolGen.`lookupMethodref(MethodGen method)`
  Looks up a Methodref in the ConstantPool.
  `void`
  MethodObserver.`notify(MethodGen method)`

- ## Uses of MethodGen in org.apache.bcel.verifier.structurals

  Methods in org.apache.bcel.verifier.structurals with parameters of type MethodGen
  Modifier and Type
  Method
  Description
  `void`
  Pass3bVerifier.`invalidReturnTypeError(Type returnedType, MethodGen m)`
  Throws an exception indicating the returned type is not compatible with the return type of the given method.
  `void`
  InstConstraintVisitor.`setMethodGen(MethodGen mg)`
  Sets the MethodGen instance needed for constraint checking prior to execution.
  Constructors in org.apache.bcel.verifier.structurals with parameters of type MethodGen
  Modifier
  Constructor
  Description
  ``
  `ControlFlowGraph(MethodGen methodGen)`
  A Control Flow Graph; with additional JustIce checks
  ``
  `ControlFlowGraph(MethodGen methodGen, boolean enableJustIceCheck)`
  A Control Flow Graph.
  ``
  `ExceptionHandlers(MethodGen mg)`
  Constructs a new ExceptionHandlers instance.
  ``
  `Subroutines(MethodGen mg)`
  Constructs a new instance.
  ``
  `Subroutines(MethodGen mg, boolean enableJustIceCheck)`
  Constructs a new instance.