| Package | Description |
|---|---|
| com.ibm.wala.shrike.cg | |
| com.ibm.wala.shrikeBT.shrikeCT | |
| com.ibm.wala.shrikeBT.shrikeCT.tools | |
| com.ibm.wala.shrikeCT |
| Modifier and Type | Method and Description |
|---|---|
static void |
OfflineDynamicCallGraph.main(String[] args) |
static void |
OnlineDynamicCallGraph.premain(Instrumentation inst) |
| Constructor and Description |
|---|
OnlineDynamicCallGraph() |
| Modifier and Type | Method and Description |
|---|---|
static void |
CTUtils.addClassToHierarchy(ClassHierarchyStore store,
ClassReader cr) |
ClassWriter |
ClassInstrumenter.emitClass()
Create a class which is a copy of the original class but with the new method code.
|
ClassWriter |
ClassInstrumenter.emitClass(ClassWriter w) |
CodeReader |
ClassInstrumenter.getMethodCode(int i)
Get the original code resource for the method.
|
MethodData |
ClassInstrumenter.visitMethod(int i)
Get the current state of method i.
|
void |
ClassInstrumenter.visitMethods(ClassInstrumenter.MethodExaminer me)
Do something to every method in the class.
|
| Constructor and Description |
|---|
ClassInstrumenter(String inputName,
byte[] bytes,
ClassHierarchyProvider cha)
Create a class instrumenter from raw bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AddSerialVersion.addSerialVersionUID(ClassReader r,
ClassWriter w)
This method computes the serialVersionUID for class r (if there isn't one already) and adds the field to the classwriter w.
|
static long |
AddSerialVersion.computeSerialVersionUID(ClassReader r)
This method computes the serialVersionUID for class r.
|
Set<MethodData> |
BootstrapInstrumentor.doClass(ClassInstrumenter ci)
Print a class.
|
void |
BootstrapDumper.doClass(ClassLoader image,
ClassReader cr)
Print a class.
|
void |
ClassPrinter.doClass(ClassReader cr)
Print a class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AttributeReader.checkSize(int offset,
int len)
Ensure that the len bytes starting at offset fall within the attribute data.
|
protected void |
AttributeReader.checkSizeEquals(int offset,
int len)
Ensure that the len bytes starting at offset end at the end of the attribute data.
|
static SourcePositionTableReader.Position |
SourcePositionTableReader.findParameterPosition(int methodNr,
CodeReader code) |
int |
InnerClassesReader.getAccessFlags(String s)
return the mask of flags recorded in the InnerClasses attribute for a class named s.
|
AnnotationsReader.AnnotationAttribute[] |
AnnotationsReader.getAllAnnotations()
get all the annotations declared in this attribute.
|
AnnotationsReader.AnnotationAttribute[][] |
AnnotationsReader.getAllParameterAnnotations()
param_annotations {
u2 attribute_name_index;
u4 attribute_length;
u1 num_parameters;
{
u2 num_annotations;
annotation annotations[num_annotations];
} parameter_annotations[num_parameters];
|
TypeAnnotationsReader.TypeAnnotationAttribute[] |
TypeAnnotationsReader.getAllTypeAnnotations() |
int |
AnnotationsReader.getAnnotationCount() |
protected com.ibm.wala.util.collections.Pair<AnnotationsReader.AnnotationAttribute,Integer> |
AnnotationsReader.getAttributeAndSize(int begin)
annotation {
u2 type_index;
u2 num_element_value_pairs;
{ u2 element_name_index;
element_value value;
} element_value_pairs[num_element_value_pairs]
|
int |
AnnotationsReader.getAttributeSize() |
String[] |
ExceptionsReader.getClasses() |
String |
ConstantPoolParser.getCPClass(int i) |
BootstrapMethodsReader.BootstrapMethod |
ConstantPoolParser.getCPDynBootstrap(int i) |
String |
ConstantPoolParser.getCPDynName(int i) |
String |
ConstantPoolParser.getCPDynType(int i) |
String |
ConstantPoolParser.getCPHandleClass(int i) |
byte |
ConstantPoolParser.getCPHandleKind(int i) |
String |
ConstantPoolParser.getCPHandleName(int i) |
String |
ConstantPoolParser.getCPHandleType(int i) |
String |
ConstantPoolParser.getCPMethodType(int i) |
String |
ConstantPoolParser.getCPNATName(int i) |
String |
ConstantPoolParser.getCPNATType(int i) |
String |
ConstantPoolParser.getCPRefClass(int i) |
String |
ConstantPoolParser.getCPRefName(int i) |
String |
ConstantPoolParser.getCPRefType(int i) |
String |
ConstantPoolParser.getCPString(int i) |
String |
ConstantPoolParser.getCPUtf8(int i) |
String |
ClassReader.getFieldName(int f) |
String |
ClassReader.getFieldType(int f) |
String[] |
InnerClassesReader.getInnerClasses() |
String |
ClassReader.getInterfaceName(int i) |
String[] |
ClassReader.getInterfaceNames() |
String |
ClassReader.getMethodName(int m) |
String |
ClassReader.getMethodType(int m) |
String |
ClassReader.getName() |
String |
ClassReader.AttrIterator.getName()
The attribute iterator must be valid.
|
String |
InnerClassesReader.getOuterClass(String s)
return the name of the outer class recorded as the enclosing class for a class named s.
|
String |
SignatureReader.getSignature() |
String |
SourceFileReader.getSourceFile() |
String |
ClassReader.getSuperName() |
static TypeAnnotationsReader |
TypeAnnotationsReader.getTypeAnnotationReaderAtClassfile(ClassReader.AttrIterator iter,
String label,
SignatureReader signatureReader) |
static TypeAnnotationsReader |
TypeAnnotationsReader.getTypeAnnotationReaderAtCode(ClassReader.AttrIterator iter,
String label,
CodeReader codeReader) |
static TypeAnnotationsReader |
TypeAnnotationsReader.getTypeAnnotationReaderAtFieldInfo(ClassReader.AttrIterator iter,
String label) |
static TypeAnnotationsReader |
TypeAnnotationsReader.getTypeAnnotationReaderAtMethodInfo(ClassReader.AttrIterator iter,
String label,
ExceptionsReader exceptionReader,
SignatureReader signatureReader) |
protected String |
AnnotationsReader.getUtf8ConstantPoolValue(int offset)
get the Utf8 constant pool value, where the constant pool offset is given
in the class
|
static SourcePositionTableReader.Position[] |
SourcePositionTableReader.makeBytecodeToPositionMap(CodeReader code) |
static int[] |
LineNumberTableReader.makeBytecodeToSourceMap(CodeReader code)
Construct a "bytecode to source" map for the given code.
|
static int[][] |
LocalVariableTableReader.makeVarMap(CodeReader code) |
protected com.ibm.wala.util.collections.Pair<AnnotationsReader.ElementValue,Integer> |
AnnotationsReader.readElementValueAndSize(int offset)
element_value {
u1 tag;
union {
u2 const_value_index;
{ u2 type_name_index;
u2 const_name_index;
} enum_const_value;
u2 class_info_index;
annotation annotation_value;
{ u2 num_values;
element_value values[num_values];
} array_value;
} value;
|
static List<StackMapConstants.StackMapFrame> |
StackMapTableReader.readStackMap(CodeReader code) |
void |
ClassWriter.setRawCP(ConstantPoolParser cp,
boolean cacheEntries)
Copy a constant pool from some ClassReader into this class.
|
Copyright © 2019. All rights reserved.