# 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)`
  Methods in org.apache.bcel.generic with parameters of type MethodGen
  Modifier and Type
  Method
  Description
  `int`
  ConstantPoolGen.`addInterfaceMethodref(MethodGen method)`
  `int`
  ConstantPoolGen.`addMethodref(MethodGen method)`
  `int`
  ConstantPoolGen.`lookupInterfaceMethodref(MethodGen method)`
  `int`
  ConstantPoolGen.`lookupMethodref(MethodGen method)`
  `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.