org.apache.commons.classscan.model
Interface MetaField

All Superinterfaces:
HasName
All Known Subinterfaces:
SpiMetaField
All Known Implementing Classes:
BcelField

public interface MetaField
extends HasName

Metadata about a Class field


Method Summary
 MetaAnnotation getAnnotation(String annotationName)
          Get metadata about a particular annotation on the corresponding field.
 Set<? extends MetaAnnotation> getAnnotations()
          Get metadata about the annotations on the field.
 String getName()
          Get the name of the method or constructor
 MetaType getType()
          Get metadata about the field's type
 boolean isStatic()
          Get whether the corresponding field is a static field
 

Method Detail

getName

String getName()
Get the name of the method or constructor

Specified by:
getName in interface HasName

getAnnotations

Set<? extends MetaAnnotation> getAnnotations()
Get metadata about the annotations on the field.

Returns:
A read-only set of annotations

getAnnotation

MetaAnnotation getAnnotation(String annotationName)
Get metadata about a particular annotation on the corresponding field.

Parameters:
annotationName - The name of the annotation desired
Returns:
The annotation information, or null if not specified on the corresponding field

isStatic

boolean isStatic()
Get whether the corresponding field is a static field


getType

MetaType getType()
Get metadata about the field's type



Copyright © 2012 The Apache Software Foundation. All Rights Reserved.