cz.vutbr.fit.findbugs.atom.analysis
Class CTMethods

java.lang.Object
  extended by cz.vutbr.fit.findbugs.atom.analysis.CTMethods

public class CTMethods
extends java.lang.Object

This class provides static operation which makes available parameters of ConTest methods.

Author:
zdenek

Constructor Summary
CTMethods()
           
 
Method Summary
static java.lang.String processExitMethod(java.lang.String contestMethod, org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.classfile.ConstantPool cp)
           
static CTVarInfo processVarConTestMethod(java.lang.String contestMethod, org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.classfile.ConstantPool cp, org.apache.bcel.generic.ConstantPoolGen cpg)
          The method takes a handle of the INVOKESTATIC instruction which was identifiead as call to ConTest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CTMethods

public CTMethods()
Method Detail

processVarConTestMethod

public static CTVarInfo processVarConTestMethod(java.lang.String contestMethod,
                                                org.apache.bcel.generic.InstructionHandle handle,
                                                org.apache.bcel.classfile.ConstantPool cp,
                                                org.apache.bcel.generic.ConstantPoolGen cpg)
The method takes a handle of the INVOKESTATIC instruction which was identifiead as call to ConTest. Then according to the type of the method takes its parameteres from the given constatnt pool and encapsulate them with CTMethodInfo object - which can be then used to access the parameters.

See Also:
CTVarInfo

processExitMethod

public static java.lang.String processExitMethod(java.lang.String contestMethod,
                                                 org.apache.bcel.generic.InstructionHandle handle,
                                                 org.apache.bcel.classfile.ConstantPool cp)