org.reflext.api
Interface MethodInfo

All Superinterfaces:
GenericDeclarationInfo

public interface MethodInfo
extends GenericDeclarationInfo

Version:
$Revision$
Author:
Julien Viet

Method Summary
 AccessScope getAccess()
           
<A extends Annotation>
A
getDeclaredAnnotation(Class<A> annotationClass)
           
 Object getMethod()
           
 String getName()
           
 ClassTypeInfo getOwner()
           
 List<TypeInfo> getParameterTypes()
           
 TypeInfo getReturnType()
           
 MethodSignature getSignature()
           
 MethodSignature getSignature(ClassTypeInfo context)
          Resolves a type signature with a provided class type context.
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isStatic()
           
 
Methods inherited from interface org.reflext.api.GenericDeclarationInfo
getTypeParameters
 

Method Detail

getMethod

Object getMethod()

getOwner

ClassTypeInfo getOwner()

getReturnType

TypeInfo getReturnType()

getName

String getName()

getParameterTypes

List<TypeInfo> getParameterTypes()

getSignature

MethodSignature getSignature()

getSignature

MethodSignature getSignature(ClassTypeInfo context)

Resolves a type signature with a provided class type context.

For instance, let's consider the following class: public class A implements java.util.List { ... public boolean add(String e) { ... } ... } Whenever you resolve the method List.add(Object) from the List interface within the context of the A class, you will obtain the signature add(String e) instead of the add(Object e) signature.

Parameters:
context - the class type context
Returns:
the signature with respect to the provided context

getAccess

AccessScope getAccess()

isAbstract

boolean isAbstract()

isStatic

boolean isStatic()

isFinal

boolean isFinal()

getDeclaredAnnotation

<A extends Annotation> A getDeclaredAnnotation(Class<A> annotationClass)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.