public class ClassParser extends Object implements ClassParserInterface
Constructor and Description |
---|
ClassParser(DataInputStream in,
ClassDescriptor expectedClassDescriptor,
ICodeBaseEntry codeBaseEntry)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
extractReferencedClassesFromSignature(Set<ClassDescriptor> referencedClassSet,
String signature) |
void |
parse(ClassInfo.Builder builder)
Parse the class data into a ClassInfo object containing (some of) the
class's symbolic information.
|
void |
parse(ClassNameAndSuperclassInfo.Builder builder)
Parse the class data into a ClassNameAndSuperclassInfo object containing
(some of) the class's symbolic information.
|
public ClassParser(DataInputStream in, @CheckForNull ClassDescriptor expectedClassDescriptor, ICodeBaseEntry codeBaseEntry)
in
- the DataInputStream to read class data fromexpectedClassDescriptor
- ClassDescriptor expected: null if unknowncodeBaseEntry
- codebase entry class is loaded frompublic void parse(ClassNameAndSuperclassInfo.Builder builder) throws InvalidClassFileFormatException
ClassParserInterface
parse
in interface ClassParserInterface
builder
- a ClassNameAndSuperclassInfo object to be filled in with (some
of) the class's symbolic informationInvalidClassFileFormatException
public void parse(ClassInfo.Builder builder) throws InvalidClassFileFormatException
ClassParserInterface
parse
in interface ClassParserInterface
builder
- a ClassInfo object to be filled in with (some of) the class's
symbolic informationInvalidClassFileFormatException
public static void extractReferencedClassesFromSignature(Set<ClassDescriptor> referencedClassSet, String signature)
Copyright © 2003–2015. All rights reserved.