org.springframework.roo.classpath.details
Class DefaultFieldMetadata

java.lang.Object
  extended by org.springframework.roo.classpath.details.DefaultFieldMetadata
All Implemented Interfaces:
FieldMetadata, IdentifiableMember

public class DefaultFieldMetadata
extends Object
implements FieldMetadata

Default implementation of FieldMetadata.

Since:
1.0
Author:
Ben Alex

Constructor Summary
DefaultFieldMetadata(String declaredByMetadataId, int modifier, org.springframework.roo.model.JavaSymbolName fieldName, org.springframework.roo.model.JavaType fieldType, String fieldInitializer, List<AnnotationMetadata> annotations)
           
 
Method Summary
 List<AnnotationMetadata> getAnnotations()
           
 String getDeclaredByMetadataId()
           
 String getFieldInitializer()
           
 org.springframework.roo.model.JavaSymbolName getFieldName()
           
 org.springframework.roo.model.JavaType getFieldType()
           
 int getModifier()
          Indicates the access modifier of the member.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultFieldMetadata

public DefaultFieldMetadata(String declaredByMetadataId,
                            int modifier,
                            org.springframework.roo.model.JavaSymbolName fieldName,
                            org.springframework.roo.model.JavaType fieldType,
                            String fieldInitializer,
                            List<AnnotationMetadata> annotations)
Method Detail

getModifier

public int getModifier()
Description copied from interface: IdentifiableMember
Indicates the access modifier of the member. The integer is formatted in accordance with Modifier.

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

getDeclaredByMetadataId

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

getAnnotations

public List<AnnotationMetadata> getAnnotations()
Specified by:
getAnnotations in interface FieldMetadata
Returns:
annotations on this field (never null, but may be empty)

getFieldInitializer

public String getFieldInitializer()
Specified by:
getFieldInitializer in interface FieldMetadata
Returns:
the field initializer, if known (may be null if there is no initializer)

getFieldName

public org.springframework.roo.model.JavaSymbolName getFieldName()
Specified by:
getFieldName in interface FieldMetadata
Returns:
the name of the field (never null)

getFieldType

public org.springframework.roo.model.JavaType getFieldType()
Specified by:
getFieldType in interface FieldMetadata
Returns:
the type of field (never null)

toString

public String toString()
Overrides:
toString in class Object


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