org.springframework.roo.classpath.details
Interface ClassOrInterfaceTypeDetails

All Superinterfaces:
MemberHoldingTypeDetails, PhysicalTypeDetails
All Known Subinterfaces:
MutableClassOrInterfaceTypeDetails
All Known Implementing Classes:
DefaultClassOrInterfaceTypeDetails

public interface ClassOrInterfaceTypeDetails
extends MemberHoldingTypeDetails

Provides information about the different components of a class, interface or enum.

For simplicity of implementation this is not a complete representation of all members and other information available via Java bytecode. For example, static initialisers and inner classes are unsupported.

Since:
1.0
Author:
Ben Alex

Method Summary
 String getDeclaredByMetadataId()
          Obtains the physical type identifier that included this ClassOrInterfaceTypeDetails.
 List<org.springframework.roo.model.JavaSymbolName> getEnumConstants()
          Lists the enum constants this type provides.
 int getModifier()
          Obtains the modifiers, in a format consistent with Modifier.
 ClassOrInterfaceTypeDetails getSuperclass()
          Obtains the superclass if this is a class and it is available.
 
Methods inherited from interface org.springframework.roo.classpath.details.MemberHoldingTypeDetails
getDeclaredConstructors, getDeclaredFields, getDeclaredMethods, getExtendsTypes, getImplementsTypes, getTypeAnnotations
 
Methods inherited from interface org.springframework.roo.classpath.PhysicalTypeDetails
getName, getPhysicalTypeCategory
 

Method Detail

getSuperclass

ClassOrInterfaceTypeDetails getSuperclass()
Obtains the superclass if this is a class and it is available.

Returns:
the superclass, if available (null will be returned for interfaces, or if the class isn't available)

getModifier

int getModifier()
Obtains the modifiers, in a format consistent with Modifier.

Returns:
the modifiers (zero means no modifiers)

getDeclaredByMetadataId

String getDeclaredByMetadataId()
Obtains the physical type identifier that included this ClassOrInterfaceTypeDetails.

Returns:
the physical type identifier (never null)

getEnumConstants

List<org.springframework.roo.model.JavaSymbolName> getEnumConstants()
Lists the enum constants this type provides. Always empty except if an enum type.

Returns:
the constants (may be empty, but never null)


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