org.apache.commons.classscan.bcel
Class BcelField

java.lang.Object
  extended by org.apache.commons.classscan.bcel.BcelField
All Implemented Interfaces:
HasName, MetaField, HasResolve, SpiMetaField

public class BcelField
extends Object
implements SpiMetaField


Constructor Summary
BcelField(org.apache.bcel.classfile.Field 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
 boolean resolve(SpiMetaClassLoader classLoader)
          Resolve names into model entries
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BcelField

public BcelField(org.apache.bcel.classfile.Field field)
Method Detail

resolve

public boolean resolve(SpiMetaClassLoader classLoader)
Description copied from interface: HasResolve
Resolve names into model entries

Specified by:
resolve in interface HasResolve

getName

public String getName()
Description copied from interface: MetaField
Get the name of the method or constructor

Specified by:
getName in interface HasName
Specified by:
getName in interface MetaField

getAnnotations

public Set<? extends MetaAnnotation> getAnnotations()
Description copied from interface: MetaField
Get metadata about the annotations on the field.

Specified by:
getAnnotations in interface MetaField
Returns:
A read-only set of annotations

getAnnotation

public MetaAnnotation getAnnotation(String annotationName)
Description copied from interface: MetaField
Get metadata about a particular annotation on the corresponding field.

Specified by:
getAnnotation in interface MetaField
Parameters:
annotationName - The name of the annotation desired
Returns:
The annotation information, or null if not specified on the corresponding field

isStatic

public boolean isStatic()
Description copied from interface: MetaField
Get whether the corresponding field is a static field

Specified by:
isStatic in interface MetaField

getType

public MetaType getType()
Description copied from interface: MetaField
Get metadata about the field's type

Specified by:
getType in interface MetaField


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