org.springframework.roo.classpath.details
Class DefaultFieldMetadata

java.lang.Object
  extended by org.springframework.roo.model.AbstractCustomDataAccessorProvider
      extended by org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
          extended by org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
              extended by org.springframework.roo.classpath.details.DefaultFieldMetadata
All Implemented Interfaces:
CommentedJavaStructure, FieldMetadata, IdentifiableAnnotatedJavaStructure, IdentifiableJavaStructure, org.springframework.roo.model.CustomDataAccessor

public class DefaultFieldMetadata
extends AbstractIdentifiableAnnotatedJavaStructureProvider
implements FieldMetadata

Default implementation of FieldMetadata.

Since:
1.0
Author:
Ben Alex

Method Summary
 CommentStructure getCommentStructure()
           
 String getFieldInitializer()
           
 org.springframework.roo.model.JavaSymbolName getFieldName()
           
 org.springframework.roo.model.JavaType getFieldType()
           
 void setCommentStructure(CommentStructure commentStructure)
           
 String toString()
           
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableAnnotatedJavaStructureProvider
getAnnotation, getAnnotations, getTypeAnnotation
 
Methods inherited from class org.springframework.roo.classpath.details.AbstractIdentifiableJavaStructureProvider
getDeclaredByMetadataId, getModifier
 
Methods inherited from class org.springframework.roo.model.AbstractCustomDataAccessorProvider
getCustomData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableAnnotatedJavaStructure
getAnnotation, getAnnotations, getTypeAnnotation
 
Methods inherited from interface org.springframework.roo.classpath.details.IdentifiableJavaStructure
getDeclaredByMetadataId, getModifier
 
Methods inherited from interface org.springframework.roo.model.CustomDataAccessor
getCustomData
 

Method Detail

getCommentStructure

public CommentStructure getCommentStructure()
Specified by:
getCommentStructure in interface CommentedJavaStructure

setCommentStructure

public void setCommentStructure(CommentStructure commentStructure)
Specified by:
setCommentStructure in interface CommentedJavaStructure

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–2015. All rights reserved.