Package | Description |
---|---|
com.vladium.emma.instr | |
com.vladium.jcd.cls | |
com.vladium.jcd.cls.attribute | |
com.vladium.jcd.cls.constant | |
com.vladium.jcd.compiler | |
com.vladium.jcd.parser |
Modifier and Type | Field and Description |
---|---|
(package private) ClassDef |
InstrVisitor.m_cls |
Modifier and Type | Method and Description |
---|---|
void |
InstrVisitor.process(ClassDef cls,
boolean ignoreAlreadyInstrumented,
boolean instrument,
boolean metadata,
InstrVisitor.InstrResult out)
Analyzes 'cls' and/or instruments it for coverage:
if 'instrument' is true, the class definition is instrumented for
coverage if that is feasible
if 'metadata' is true, the class definition is analysed
to create a
ClassDescriptor for the original class definition
This method returns null if 'metadata' is 'false' *or* if 'cls' is an
interface [the latter precludes coverage of interface static
initializers and may be removed in the future]. |
java.lang.Object |
InstrVisitor.visit(ClassDef ignore,
java.lang.Object ctx) |
Modifier and Type | Method and Description |
---|---|
int[] |
MethodCollection.get(ClassDef cls,
java.lang.String name) |
int[] |
IMethodCollection.get(ClassDef cls,
java.lang.String name)
Returns an array of offsets for methods named 'name' (empty array if no
matching fields found).
|
int[] |
IFieldCollection.get(ClassDef cls,
java.lang.String name)
Returns an array of offsets for fields named 'name' (empty array if no
matching fields found).
|
int[] |
FieldCollection.get(ClassDef cls,
java.lang.String name) |
java.lang.String |
Method_info.getDescriptor(ClassDef cls)
Returns the descriptor string for this method within the context of 'cls'
class definition.
|
java.lang.String |
Field_info.getDescriptor(ClassDef cls)
Returns the descriptor string for this field within the context of 'cls'
class definition.
|
java.lang.String |
Method_info.getName(ClassDef cls)
Returns the method name within the context of 'cls' class definition.
|
java.lang.String |
Field_info.getName(ClassDef cls)
Returns the field name within the context of 'cls' class definition.
|
java.lang.Object |
AbstractClassDefVisitor.visit(ClassDef cls,
java.lang.Object ctx) |
java.lang.Object |
IClassDefVisitor.visit(ClassDef cls,
java.lang.Object ctx) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Attribute_info.getName(ClassDef cls)
Returns the name for this attribute within the constant pool context of 'cls'
class definition.
|
CONSTANT_Utf8_info |
SourceFileAttribute_info.getSourceFile(ClassDef cls) |
CONSTANT_literal_info |
ConstantValueAttribute_info.getValue(ClassDef cls) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
CONSTANT_NameAndType_info.getDescriptor(ClassDef cls) |
java.lang.String |
CONSTANT_Class_info.getName(ClassDef cls)
Returns the JVM class name within the constant pool context of 'cls'
class definition.
|
java.lang.String |
CONSTANT_NameAndType_info.getName(ClassDef cls) |
Modifier and Type | Method and Description |
---|---|
static void |
CodeGen.push_int_value(ByteArrayOStream out,
ClassDef cls,
int value) |
static void |
ClassWriter.writeClassTable(ClassDef classTable,
java.io.OutputStream out) |
Modifier and Type | Field and Description |
---|---|
private ClassDef |
ClassDefParser.classParser.m_table |
Modifier and Type | Method and Description |
---|---|
(package private) ClassDef |
ClassDefParser.classParser.class_table() |
static ClassDef |
ClassDefParser.parseClass(byte[] bytes)
Parses an array of bytecodes into a
ClassDef . |
static ClassDef |
ClassDefParser.parseClass(byte[] bytes,
int length)
Parses an array of bytecodes into a
ClassDef . |
static ClassDef |
ClassDefParser.parseClass(java.io.InputStream bytes)
Parses a stream of bytecodes into a
ClassDef . |