public final class ClassInfo extends AbstractInfo
Modifier and Type | Field and Description |
---|---|
private java.util.Map |
fieldMap
A map of field signature to FieldInfo, for the fields provided by
this class.
|
private java.lang.String[] |
interfaces
An array of names of internal classnames of interfaces implmented
by the class.
|
private java.util.Map |
methodMap
A map of method signature to MethodInfo, for the methods provided
by this class.
|
private java.lang.String |
signature
The class signature.
|
private java.lang.String |
supername
The internal classname of the superclass.
|
private int |
version
The classfile version number.
|
ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PROTECTED, ACCESS_PUBLIC
Constructor and Description |
---|
ClassInfo(int version,
int access,
java.lang.String name,
java.lang.String signature,
java.lang.String supername,
java.lang.String[] interfaces,
java.util.Map methodMap,
java.util.Map fieldMap)
Create a new classinfo.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getFieldMap()
Get the map of field signatures to fields.
|
java.lang.String[] |
getInterfaces()
Get the internal names of the interfaces implemented by this class
|
java.util.Map |
getMethodMap()
Get the map of method signatures to methods.
|
java.lang.String |
getSignature()
Get the class signature.
|
java.lang.String |
getSupername()
Get the internal name of the superclass.
|
int |
getVersion()
Get the class file version.
|
getAccess, getAccessType, getName, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarargs, isVolatile
private int version
private java.lang.String signature
private java.lang.String supername
private java.lang.String[] interfaces
private java.util.Map methodMap
private java.util.Map fieldMap
public ClassInfo(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String supername, java.lang.String[] interfaces, java.util.Map methodMap, java.util.Map fieldMap)
version
- the class file version number.access
- the access flags for the class.name
- the internal name of the class.signature
- the signature of the class.interfaces
- an array of internal names of interfaces implemented
by the class.methodMap
- a map of methods provided by this class.fieldMap
- a map of fields provided by this class.public final int getVersion()
public final java.lang.String getSignature()
public final java.lang.String getSupername()
public final java.lang.String[] getInterfaces()
public final java.util.Map getMethodMap()
public final java.util.Map getFieldMap()