Class CTUtils
java.lang.Object
com.ibm.wala.shrike.shrikeBT.shrikeCT.CTUtils
This is a dumping ground for useful functions that manipulate class info.
- Author:
- roca@us.ibm.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddClassToHierarchy(ClassHierarchyStore store, ClassReader cr) static voidcompileAndAddMethodToClassWriter(MethodData md, ClassWriter classWriter, ClassWriter.Element rawLines) Compile and add a method to aClassWriter.static voidcompileAndAddMethodToClassWriter(MethodData md, ClassWriter classWriter, ClassWriter.Element rawLines, ClassHierarchyProvider hierarchy) Compile a method with stack map frames for a class file that requires them.
-
Constructor Details
-
CTUtils
public CTUtils()
-
-
Method Details
-
addClassToHierarchy
public static void addClassToHierarchy(ClassHierarchyStore store, ClassReader cr) throws InvalidClassFileException, IllegalArgumentException -
compileAndAddMethodToClassWriter
public static void compileAndAddMethodToClassWriter(MethodData md, ClassWriter classWriter, ClassWriter.Element rawLines) Compile and add a method to aClassWriter.- Parameters:
md- the method dataclassWriter- the target class writerrawLines- line number information if available, otherwisenull
-
compileAndAddMethodToClassWriter
public static void compileAndAddMethodToClassWriter(MethodData md, ClassWriter classWriter, ClassWriter.Element rawLines, ClassHierarchyProvider hierarchy) throws Analyzer.FailureException, IOException Compile a method with stack map frames for a class file that requires them.- Throws:
Analyzer.FailureExceptionIOException
-