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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addClassToHierarchy
(ClassHierarchyStore store, ClassReader cr) static void
compileAndAddMethodToClassWriter
(MethodData md, ClassWriter classWriter, ClassWriter.Element rawLines) Compile and add a method to aClassWriter
.
-
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
-