org.apache.commons.classscan.bcel
Class BcelMethod

java.lang.Object
  extended by org.apache.commons.classscan.bcel.BcelMethod
All Implemented Interfaces:
HasName, MetaMethod, HasResolve, SpiMetaMethod

public class BcelMethod
extends Object
implements SpiMetaMethod


Constructor Summary
BcelMethod(org.apache.bcel.classfile.Method method)
           
 
Method Summary
 MetaAnnotation getAnnotation(String annotationName)
          Get metadata about a particular annotation on the corresponding method.
 Set<? extends MetaAnnotation> getAnnotations()
          Get metadata about the annotations on the method or constructor.
 String getName()
          Get the name of the method or constructor
 Set<? extends MetaParameter> getParameters()
          Get metadata about the parameters of the method or constructor
 MetaType getType()
          Get metadata about the return type of the method or constructor
 boolean isStatic()
          Get whether the corresponding method or constructor is a static method or static class initializer
 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

BcelMethod

public BcelMethod(org.apache.bcel.classfile.Method method)
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: MetaMethod
Get the name of the method or constructor

Specified by:
getName in interface HasName
Specified by:
getName in interface MetaMethod

getAnnotations

public Set<? extends MetaAnnotation> getAnnotations()
Description copied from interface: MetaMethod
Get metadata about the annotations on the method or constructor.

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

getAnnotation

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

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

isStatic

public boolean isStatic()
Description copied from interface: MetaMethod
Get whether the corresponding method or constructor is a static method or static class initializer

Specified by:
isStatic in interface MetaMethod

getType

public MetaType getType()
Description copied from interface: MetaMethod
Get metadata about the return type of the method or constructor

Specified by:
getType in interface MetaMethod
Returns:
null, if the type is void return; otherwise, metadata about the type

getParameters

public Set<? extends MetaParameter> getParameters()
Description copied from interface: MetaMethod
Get metadata about the parameters of the method or constructor

Specified by:
getParameters in interface MetaMethod
Returns:
A read-only set of parameter information


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