org.apache.commons.classscan.bcel
Class BcelAnnotation

java.lang.Object
  extended by org.apache.commons.classscan.bcel.BcelAnnotation
All Implemented Interfaces:
HasName, MetaAnnotation, HasResolve, SpiMetaAnnotation

public class BcelAnnotation
extends Object
implements SpiMetaAnnotation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.commons.classscan.spi.model.SpiMetaAnnotation
SpiMetaAnnotation.SpiProperty
 
Nested classes/interfaces inherited from interface org.apache.commons.classscan.model.MetaAnnotation
MetaAnnotation.EnumValue, MetaAnnotation.Property
 
Constructor Summary
BcelAnnotation(org.apache.bcel.classfile.AnnotationEntry annotation)
           
 
Method Summary
 String getName()
          Get the name of the Annotation
 Set<? extends MetaAnnotation.Property> getProperties()
          Get metadata about the properties of the corresponding Annotation
 MetaAnnotation.Property getProperty(String propertyName)
          Get a single property of the corresponding Annotation
 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

BcelAnnotation

public BcelAnnotation(org.apache.bcel.classfile.AnnotationEntry annotation)
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: MetaAnnotation
Get the name of the Annotation

Specified by:
getName in interface HasName
Specified by:
getName in interface MetaAnnotation

getProperties

public Set<? extends MetaAnnotation.Property> getProperties()
Description copied from interface: MetaAnnotation
Get metadata about the properties of the corresponding Annotation

Specified by:
getProperties in interface MetaAnnotation
Returns:
The read-only set of properties specified in the annotation

getProperty

public MetaAnnotation.Property getProperty(String propertyName)
Description copied from interface: MetaAnnotation
Get a single property of the corresponding Annotation

Specified by:
getProperty in interface MetaAnnotation
Parameters:
propertyName - The name of the Property desired.
Returns:
The Property; or null, if the no Property exists with the given name.


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