org.codehaus.metaclass.model
Class ClassDescriptor

java.lang.Object
  extended byorg.codehaus.metaclass.model.FeatureDescriptor
      extended byorg.codehaus.metaclass.model.ClassDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class ClassDescriptor
extends FeatureDescriptor
implements java.io.Serializable

This class contains the meta information about a Class. It contains the name of the class, access modifiers, attributes, the classes fields and the classes methods.

Version:
$Revision: 1.11 $ $Date: 2003/11/27 08:09:53 $
Author:
Peter Donald
See Also:
Serialized Form

Constructor Summary
ClassDescriptor(java.lang.String name, Attribute[] declaredAttributes, Attribute[] attributes, FieldDescriptor[] fields, MethodDescriptor[] methods)
          Create a ClassDescriptor with metadata about a class.
 
Method Summary
 FieldDescriptor[] getFields()
          Return the FieldDescriptors for class.
 MethodDescriptor[] getMethods()
          Return the MethodDescriptors for class.
 java.lang.String getName()
          Return the name of the class.
 
Methods inherited from class org.codehaus.metaclass.model.FeatureDescriptor
getAttributes, getDeclaredAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDescriptor

public ClassDescriptor(java.lang.String name,
                       Attribute[] declaredAttributes,
                       Attribute[] attributes,
                       FieldDescriptor[] fields,
                       MethodDescriptor[] methods)
Create a ClassDescriptor with metadata about a class. The descriptor usually represents a corrresponding java class but this is not always the case.

Parameters:
name - the name of class
declaredAttributes - the declared attributes
attributes - the top level attribute metadata
fields - the field descriptors for class
methods - the method descriptors for class
Method Detail

getName

public java.lang.String getName()
Return the name of the class.

Returns:
the name of the class.

getFields

public FieldDescriptor[] getFields()
Return the FieldDescriptors for class. Note that it is not necessary that all fields in the class have corresponding FieldDescriptors.

Returns:
the FieldDescriptors for class.

getMethods

public MethodDescriptor[] getMethods()
Return the MethodDescriptors for class. Note that it is not necessary that all methods in the class have corresponding MethodDescriptors.

Returns:
the MethodDescriptors for class.


Copyright © 2003-2004 Codehaus. All Rights Reserved.