public class ClassFile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACC_ABSTRACT |
static int |
ACC_ANNOTATION |
static int |
ACC_ENUM |
static int |
ACC_FINAL |
static int |
ACC_INTERFACE |
static int |
ACC_MODULE |
static int |
ACC_PUBLIC |
static int |
ACC_SUPER |
static int |
ACC_SYNTHETIC |
static int |
MAGIC |
Constructor and Description |
---|
ClassFile(Class<?> clazz) |
ClassFile(InputStream in) |
Modifier and Type | Method and Description |
---|---|
String |
dump()
Produces a dump similar to javap -verbose.
|
String |
dumpConstantPool() |
int |
getAccessFlags() |
AttributeInfo[] |
getAttributes() |
Set<String> |
getDependentClasses() |
FieldInfo[] |
getFields() |
String[] |
getInterfaces() |
int |
getMajorVersion() |
MethodInfo[] |
getMethods() |
int |
getMinorVersion() |
String |
getNestHost() |
List<String> |
getNestMembers() |
String |
getSimpleName() |
String |
getSuperClass() |
String |
getThisClass() |
boolean |
isAbstract() |
boolean |
isAnnotation() |
boolean |
isDeprecated() |
boolean |
isEnum() |
boolean |
isFinal() |
boolean |
isInnerClass() |
boolean |
isInterface() |
boolean |
isModule() |
boolean |
isNestHost() |
boolean |
isPublic() |
boolean |
isSuper() |
boolean |
isSynthetic() |
public static final int MAGIC
public static final int ACC_PUBLIC
public static final int ACC_FINAL
public static final int ACC_SUPER
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
public static final int ACC_SYNTHETIC
public static final int ACC_ANNOTATION
public static final int ACC_ENUM
public static final int ACC_MODULE
public ClassFile(Class<?> clazz) throws IOException
IOException
public ClassFile(InputStream in) throws IOException
IOException
public String dumpConstantPool()
public String dump()
public int getMinorVersion()
public int getMajorVersion()
public int getAccessFlags()
public String getThisClass()
public String getSuperClass()
public String[] getInterfaces()
public FieldInfo[] getFields()
public MethodInfo[] getMethods()
public AttributeInfo[] getAttributes()
public boolean isPublic()
public boolean isFinal()
public boolean isSuper()
public boolean isInterface()
public boolean isAbstract()
public boolean isSynthetic()
public boolean isAnnotation()
public boolean isEnum()
public boolean isModule()
public String getSimpleName()
public boolean isInnerClass()
public boolean isNestHost()
public String getNestHost()
public boolean isDeprecated()
Copyright © 2017–2023 Hans Jörg Heßmann. All rights reserved.