org.apache.commons.classscan.bcel
Class BcelAnnotation
java.lang.Object
org.apache.commons.classscan.bcel.BcelAnnotation
- All Implemented Interfaces:
- HasName, MetaAnnotation, HasResolve, SpiMetaAnnotation
public class BcelAnnotation
- extends Object
- implements SpiMetaAnnotation
Constructor Summary |
BcelAnnotation(org.apache.bcel.classfile.AnnotationEntry annotation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BcelAnnotation
public BcelAnnotation(org.apache.bcel.classfile.AnnotationEntry annotation)
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.