org.apache.felix.scrplugin.tags
Interface JavaClassDescription

All Known Implementing Classes:
AnnotationJavaClassDescription, ClassLoaderJavaClassDescription, QDoxJavaClassDescription

public interface JavaClassDescription

JavaClassDescription.java... Description of a java class


Field Summary
static JavaClassDescription[] EMPTY_RESULT
           
 
Method Summary
 JavaField getExternalFieldByName(String name)
           
 JavaField getFieldByName(String name)
          Get the field with the name.
 JavaField[] getFields()
          Get the fields of this class
 JavaClassDescription[] getImplementedInterfaces()
          Returns an array of the implemented interfaces of this class.
 JavaMethod getMethodBySignature(String name, String[] parameters)
          Search for a method with the given signature.
 JavaMethod[] getMethods()
          Return all methods of this class
 String getName()
          Get the name of the described class.
 JavaClassDescription getReferencedClass(String referencedName)
          Search for the class.
 JavaClassDescription getSuperClass()
          Get the description for the parent class.
 JavaTag getTagByName(String name)
          Get the java class tag with the name.
 JavaTag[] getTagsByName(String name, boolean inherited)
          Get all class tags with this name.
 boolean isA(String type)
          Is this class of the type?
 boolean isAbstract()
          Is this class abstract?
 boolean isInterface()
          Is this class an interface?
 boolean isPublic()
          Is this class public?
 

Field Detail

EMPTY_RESULT

static final JavaClassDescription[] EMPTY_RESULT
Method Detail

getTagByName

JavaTag getTagByName(String name)
Get the java class tag with the name.

Parameters:
name -
Returns:
the tag or null.

getTagsByName

JavaTag[] getTagsByName(String name,
                        boolean inherited)
                        throws SCRDescriptorException
Get all class tags with this name.

Parameters:
name -
inherited - If true, parent classes are searched as well.
Returns:
An array of tags or the empty array.
Throws:
SCRDescriptorException

getSuperClass

JavaClassDescription getSuperClass()
                                   throws SCRDescriptorException
Get the description for the parent class.

Returns:
The description or null if this class is the Object class.
Throws:
SCRDescriptorException

getName

String getName()
Get the name of the described class.

Returns:
The name of the described class.

getFields

JavaField[] getFields()
Get the fields of this class

Returns:
All fields or an empty array

getFieldByName

JavaField getFieldByName(String name)
                         throws SCRDescriptorException
Get the field with the name.

Parameters:
name - The name of the field
Returns:
The field with the name or null.
Throws:
SCRDescriptorException

getExternalFieldByName

JavaField getExternalFieldByName(String name)
                                 throws SCRDescriptorException
Throws:
SCRDescriptorException

getImplementedInterfaces

JavaClassDescription[] getImplementedInterfaces()
                                                throws SCRDescriptorException
Returns an array of the implemented interfaces of this class.

Returns:
An array containing the interfaces or an empty array if this class does not implement any interface.
Throws:
SCRDescriptorException

getMethodBySignature

JavaMethod getMethodBySignature(String name,
                                String[] parameters)
                                throws SCRDescriptorException
Search for a method with the given signature.

Parameters:
name -
parameters -
Returns:
A descriptor for the method or null
Throws:
SCRDescriptorException

isPublic

boolean isPublic()
Is this class public?

Returns:
True if this class is public.

isAbstract

boolean isAbstract()
Is this class abstract?

Returns:
True if this class is abstract.

isInterface

boolean isInterface()
Is this class an interface?

Returns:
True if this is an interface.

getMethods

JavaMethod[] getMethods()
Return all methods of this class

Returns:
An array of methods or an empty array.

isA

boolean isA(String type)
            throws SCRDescriptorException
Is this class of the type?

Parameters:
type -
Returns:
True if this class is of the type.
Throws:
SCRDescriptorException

getReferencedClass

JavaClassDescription getReferencedClass(String referencedName)
                                        throws SCRDescriptorException
Search for the class. If the referenced name is not fully qualified, the imports of the class are searched.

Parameters:
referencedName -
Returns:
The java class description or null
Throws:
SCRDescriptorException


Copyright © 2011 Apache Software Foundation. All Rights Reserved.