public class ConstantPoolScanner extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
dependencies(byte[] data)
Examines the constant pool of a class file and looks for references to other classes.
|
static Set<String> |
dependencies(InputStream in)
Examines the constant pool of a class file and looks for references to other classes.
|
static ConstantPool |
parse(byte[] source,
ConstantType... types)
Parses a class file and invokes the visitor with constants.
|
static ConstantPool |
parse(DataInput s,
Collection<ConstantType> _collect)
Parses a class file and invokes the visitor with constants.
|
static ConstantPool |
parse(InputStream source,
ConstantType... types)
Parses a class file and invokes the visitor with constants.
|
public static Set<String> dependencies(byte[] data) throws IOException
data - a Java class filesome.pkg.Outer$Inner)IOException - in case of malformed bytecodepublic static Set<String> dependencies(InputStream in) throws IOException
in - Stream that reads a Java class filesome.pkg.Outer$Inner)IOException - in case of malformed bytecodepublic static ConstantPool parse(byte[] source, ConstantType... types) throws IOException
IOExceptionpublic static ConstantPool parse(InputStream source, ConstantType... types) throws IOException
IOExceptionpublic static ConstantPool parse(DataInput s, Collection<ConstantType> _collect) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.