org.reflext.api
Interface MethodInfo
- All Superinterfaces:
- GenericDeclarationInfo
public interface MethodInfo
- extends GenericDeclarationInfo
- Version:
- $Revision$
- Author:
- Julien Viet
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.