org.osjava.jardiff
Class ClassInfo

java.lang.Object
  extended by org.osjava.jardiff.AbstractInfo
      extended by org.osjava.jardiff.ClassInfo

public final class ClassInfo
extends AbstractInfo

Information about a class file.

Author:
Antony Riley

Field Summary
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.
 
Fields inherited from class org.osjava.jardiff.AbstractInfo
ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PROTECTED, ACCESS_PUBLIC
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class org.osjava.jardiff.AbstractInfo
getAccess, getAccessType, getName, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarargs, isVolatile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

private int version
The classfile version number.


signature

private java.lang.String signature
The class signature.


supername

private java.lang.String supername
The internal classname of the superclass.


interfaces

private java.lang.String[] interfaces
An array of names of internal classnames of interfaces implmented by the class.


methodMap

private java.util.Map methodMap
A map of method signature to MethodInfo, for the methods provided by this class.


fieldMap

private java.util.Map fieldMap
A map of field signature to FieldInfo, for the fields provided by this class.

Constructor Detail

ClassInfo

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)
Create a new classinfo.

Parameters:
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.
Method Detail

getVersion

public final int getVersion()
Get the class file version.

Returns:
The class file version as specified in the java language spec.

getSignature

public final java.lang.String getSignature()
Get the class signature.

Returns:
the class signature

getSupername

public final java.lang.String getSupername()
Get the internal name of the superclass.

Returns:
the internal name of the superclass

getInterfaces

public final java.lang.String[] getInterfaces()
Get the internal names of the interfaces implemented by this class

Returns:
an array of internal names of classes implemented by the class.

getMethodMap

public final java.util.Map getMethodMap()
Get the map of method signatures to methods.

Returns:
a map with method signatures as keys, and MethodInfos as values.

getFieldMap

public final java.util.Map getFieldMap()
Get the map of field signatures to fields.

Returns:
a map with field signatures as keys, and FieldInfos as values.