org.apache.commons.classscan.model
Interface MetaMethod

All Superinterfaces:
HasName
All Known Subinterfaces:
SpiMetaMethod
All Known Implementing Classes:
BcelMethod

public interface MetaMethod
extends HasName

Metadata about a class method or constructor


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
 

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 method or constructor.

Returns:
A read-only set of annotations

getAnnotation

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

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

isStatic

boolean isStatic()
Get whether the corresponding method or constructor is a static method or static class initializer


getType

MetaType getType()
Get metadata about the return type of the method or constructor

Returns:
null, if the type is void return; otherwise, metadata about the type

getParameters

Set<? extends MetaParameter> getParameters()
Get metadata about the parameters of the method or constructor

Returns:
A read-only set of parameter information


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