org.springframework.roo.classpath.details
Class AbstractIdentifiableJavaStructureProvider

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
All Implemented Interfaces:
IdentifiableJavaStructure, org.springframework.roo.model.CustomDataAccessor
Direct Known Subclasses:
AbstractIdentifiableAnnotatedJavaStructureProvider, DefaultImportMetadata, DefaultInitializerMetadata

public abstract class AbstractIdentifiableJavaStructureProvider
extends org.springframework.roo.model.AbstractCustomDataAccessorProvider
implements IdentifiableJavaStructure

Abstract class for IdentifiableJavaStructure subclasses.

Since:
1.1
Author:
Ben Alex

Constructor Summary
protected AbstractIdentifiableJavaStructureProvider(org.springframework.roo.model.CustomData customData, String declaredByMetadataId, int modifier)
          Constructor
 
Method Summary
 String getDeclaredByMetadataId()
           
 int getModifier()
          Indicates the access modifier of the member.
 
Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider
getCustomData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Constructor Detail

AbstractIdentifiableJavaStructureProvider

protected AbstractIdentifiableJavaStructureProvider(org.springframework.roo.model.CustomData customData,
                                                    String declaredByMetadataId,
                                                    int modifier)
Constructor

Parameters:
customData -
declaredByMetadataId -
modifier -
Method Detail

getDeclaredByMetadataId

public final String getDeclaredByMetadataId()
Specified by:
getDeclaredByMetadataId in interface IdentifiableJavaStructure
Returns:
the ID of the metadata that declared this member (never null)

getModifier

public final int getModifier()
Description copied from interface: IdentifiableJavaStructure
Indicates the access modifier of the member. The integer is formatted in accordance with Modifier. Returning 0 is acceptable the less common structures that don't support modifiers (eg static initializers).

Specified by:
getModifier in interface IdentifiableJavaStructure
Returns:
the modifier, if available (required)


Copyright © 2009–2015. All rights reserved.