org.springframework.roo.classpath.details
Interface MemberHoldingTypeDetails

All Superinterfaces:
PhysicalTypeDetails
All Known Subinterfaces:
ClassOrInterfaceTypeDetails, ItdTypeDetails, MutableClassOrInterfaceTypeDetails
All Known Implementing Classes:
DefaultClassOrInterfaceTypeDetails, DefaultItdTypeDetails

public interface MemberHoldingTypeDetails
extends PhysicalTypeDetails

Provides information about the different members in a class, interface, enum or aspect.

Since:
1.0
Author:
Ben Alex

Method Summary
 List<? extends ConstructorMetadata> getDeclaredConstructors()
           
 List<? extends FieldMetadata> getDeclaredFields()
           
 List<? extends MethodMetadata> getDeclaredMethods()
           
 List<org.springframework.roo.model.JavaType> getExtendsTypes()
          Lists the classes this type extends.
 List<org.springframework.roo.model.JavaType> getImplementsTypes()
          Lists the classes this type implements.
 List<? extends AnnotationMetadata> getTypeAnnotations()
          Lists the type-level annotations.
 
Methods inherited from interface org.springframework.roo.classpath.PhysicalTypeDetails
getName, getPhysicalTypeCategory
 

Method Detail

getDeclaredMethods

List<? extends MethodMetadata> getDeclaredMethods()

getDeclaredConstructors

List<? extends ConstructorMetadata> getDeclaredConstructors()

getDeclaredFields

List<? extends FieldMetadata> getDeclaredFields()

getTypeAnnotations

List<? extends AnnotationMetadata> getTypeAnnotations()
Lists the type-level annotations.

This includes those annotations declared on the type, together with those defined via the ITD "declare @type: DestinationType: @Annotation" feature.

Returns:
an unmodifiable representation of annotations declared on this type (may be empty, but never null)

getExtendsTypes

List<org.springframework.roo.model.JavaType> getExtendsTypes()
Lists the classes this type extends. This may be empty. Always empty in the case of an enum.

While a List is used, normally in Java a class will only extend a single other class. A List is used to support interfaces, as well as support the special "declare parents: DestinationType extends SuperclassType" feature of ITDs which permits effectively multiple inheritance.

Returns:
an unmodifiable representation of classes this type extends (may be empty, but never null)

getImplementsTypes

List<org.springframework.roo.model.JavaType> getImplementsTypes()
Lists the classes this type implements. Always empty in the case of an interface.

A List is used to support interfaces, as well as support the special "declare parents: DestinationType implements SomeInterfaceType" feature of ITDs.

Returns:
an unmodifiable representation of classes this type implements (may be empty, but never null)


Copyright © 2009-2010 VMware, Inc. All Rights Reserved.