org.springframework.roo.classpath.details
Class DefaultFieldMetadata
java.lang.Object
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
DefaultFieldMetadata
public DefaultFieldMetadata(String declaredByMetadataId,
int modifier,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.model.JavaType fieldType,
String fieldInitializer,
List<AnnotationMetadata> annotations)
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.