org.ow2.util.scan.api.metadata
Class FieldMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>
java.lang.Object
org.ow2.util.scan.api.metadata.CommonMetadata
org.ow2.util.scan.api.metadata.FieldMetadata<C,M,F>
- Type Parameters:
C - type of class metadataM - type of method metadataF - type of field metadata
- All Implemented Interfaces:
- java.io.Serializable, IFieldMetadata<C,M,F>
public abstract class FieldMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>
- extends CommonMetadata
- implements IFieldMetadata<C,M,F>
This class represents the annotation metadata of a field.
- Author:
- Florent Benoit
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldMetadata
public FieldMetadata(JField jField,
C classAnnotationMetadata)
- Constructor.
- Parameters:
jField - the field on which we will set/add metadataclassAnnotationMetadata - the parent metadata.
getJField
public final JField getJField()
- Specified by:
getJField in interface IFieldMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>
- Returns:
- JMethod object
isInherited
public final boolean isInherited()
- Returns:
- true if this method is inherited from a super class
setInherited
public final void setInherited(boolean inherited)
- Sets the inheritance of this method.
- Parameters:
inherited - true if method is from a super class
getClassMetadata
public final C getClassMetadata()
- Specified by:
getClassMetadata in interface IFieldMetadata<C extends IClassMetadata<C,M,F>,M extends IMethodMetadata<C,M,F>,F extends IFieldMetadata<C,M,F>>
- Returns:
- parent metadata (class)
Copyright © 2007-2009 OW2 Consortium. All Rights Reserved.