donaldp 2002/10/21 03:10:11
Modified: metaclass/src/java/org/apache/excalibur/metaclass/model
FeatureDescriptor.java
Added: metaclass/src/java/org/apache/excalibur/metaclass/model
MetaClass.java
Removed: metaclass/src/java/org/apache/excalibur/metaclass/model
ClassDescriptor.java ClassInfo.java
Log:
Rework model by flatening Class* int MetaClass
Revision Changes Path
1.2 +2 -2
jakarta-avalon-excalibur/metaclass/src/java/org/apache/excalibur/metaclass/model/FeatureDescriptor.java
Index: FeatureDescriptor.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/metaclass/src/java/org/apache/excalibur/metaclass/model/FeatureDescriptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FeatureDescriptor.java 21 Oct 2002 03:44:29 -0000 1.1
+++ FeatureDescriptor.java 21 Oct 2002 10:10:11 -0000 1.2
@@ -8,8 +8,8 @@
package org.apache.excalibur.metaclass.model;
import java.io.Serializable;
-import java.util.Arrays;
import java.util.ArrayList;
+import java.util.Arrays;
/**
* This is the Abstract class for all feature descriptors.
1.1
jakarta-avalon-excalibur/metaclass/src/java/org/apache/excalibur/metaclass/model/MetaClass.java
Index: MetaClass.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.excalibur.metaclass.model;
import 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.
*
* @author <a href="mailto:peter at apache.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2002/10/21 10:10:11 $
*/
public class MetaClass
extends FeatureDescriptor
implements Serializable
{
/**
* The name of class.
*/
private final String m_classname;
/**
* The fields of the class.
*/
private final FieldDescriptor[] m_fields;
/**
* The methods in the class.
*/
private final MethodDescriptor[] m_methods;
public MetaClass( final String classname,
final int modifiers,
final Attribute[] attribute,
final FieldDescriptor[] fields,
final MethodDescriptor[] methods )
{
super(attribute, modifiers );
m_classname = classname;
m_fields = fields;
m_methods = methods;
}
/**
* Return the name of the class.
*
* @return the name of the class.
*/
public String getClassname()
{
return m_classname;
}
public FieldDescriptor[] getFields()
{
return m_fields;
}
public MethodDescriptor[] getMethods()
{
return m_methods;
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>