org.osjava.jardiff
Class ClassInfo

java.lang.Object
  extended byorg.osjava.jardiff.AbstractInfo
      extended byorg.osjava.jardiff.ClassInfo

public final class ClassInfo
extends AbstractInfo

Information about a class file.

Author:
Antony Riley

Field Summary
 
Fields inherited from class org.osjava.jardiff.AbstractInfo
ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PROTECTED, ACCESS_PUBLIC
 
Constructor Summary
ClassInfo(int version, int access, String name, String signature, String supername, String[] interfaces, Map methodMap, Map fieldMap)
          Create a new classinfo.
 
Method Summary
 Map getFieldMap()
          Get the map of field signatures to fields.
 String[] getInterfaces()
          Get the internal names of the interfaces implemented by this class
 Map getMethodMap()
          Get the map of method signatures to methods.
 String getSignature()
          Get the class signature.
 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
 

Constructor Detail

ClassInfo

public ClassInfo(int version,
                 int access,
                 String name,
                 String signature,
                 String supername,
                 String[] interfaces,
                 Map methodMap,
                 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 String getSignature()
Get the class signature.

Returns:
the class signature

getSupername

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

Returns:
the internal name of the superclass

getInterfaces

public final 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 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 Map getFieldMap()
Get the map of field signatures to fields.

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


Copyright © 2005-2006 OSJava. All Rights Reserved.