org.reflext.api
Interface MethodInfo

All Superinterfaces:
Annotated, GenericDeclarationInfo

public interface MethodInfo
extends GenericDeclarationInfo, Annotated

Version:
$Revision$
Author:
Julien Viet

Method Summary
 AccessScope getAccess()
           
 java.lang.Object getMethod()
           
 java.lang.String getName()
           
 ClassTypeInfo getOwner()
           
 java.util.List<java.lang.String> getParameterNames()
          Returns the parameter names of the method or null if the parameter names cannot be determined.
 java.util.List<TypeInfo> getParameterTypes()
           
 TypeInfo getReturnType()
           
 MethodSignature getSignature()
           
 MethodSignature getSignature(ClassTypeInfo context)
          Resolves a type signature with a provided class type context.
 MethodType getType()
          Returns the method type.
 boolean isAbstract()
          Returns true when the method getType() returns the value MethodType.ABSTRACT.
 boolean isConcrete()
          Returns true when the method getType() returns the value MethodType.CONCRETE.
 boolean isFinal()
           
 boolean isNative()
          Returns true when the method getType() returns the value MethodType.NATIVE.
 boolean isStatic()
           
 
Methods inherited from interface org.reflext.api.GenericDeclarationInfo
getTypeParameters
 
Methods inherited from interface org.reflext.api.annotation.Annotated
getDeclaredAnnotation
 

Method Detail

getMethod

java.lang.Object getMethod()

getOwner

ClassTypeInfo getOwner()

getReturnType

TypeInfo getReturnType()

getName

java.lang.String getName()

getParameterTypes

java.util.List<TypeInfo> getParameterTypes()

getParameterNames

java.util.List<java.lang.String> getParameterNames()
Returns the parameter names of the method or null if the parameter names cannot be determined.

Returns:
the method parameter names

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()

isStatic

boolean isStatic()

isFinal

boolean isFinal()

isAbstract

boolean isAbstract()
Returns true when the method getType() returns the value MethodType.ABSTRACT.

Returns:
true when the method is abstract
See Also:
getType()

isNative

boolean isNative()
Returns true when the method getType() returns the value MethodType.NATIVE.

Returns:
true when the method is native
See Also:
getType()

isConcrete

boolean isConcrete()
Returns true when the method getType() returns the value MethodType.CONCRETE.

Returns:
true when the method is concrete
See Also:
getType()

getType

MethodType getType()
Returns the method type.

Returns:
the method type


Copyright © 2010 eXo Platform SAS. All Rights Reserved.