Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.meta
Class MetaMethod

java.lang.Object
  extended by org.jboss.errai.codegen.meta.MetaMethod
All Implemented Interfaces:
HasAnnotations, MetaClassMember, MetaGenericDeclaration
Direct Known Subclasses:
BuildMetaMethod, GWTMethod, GWTSpecialMethod, JavaReflectionMethod, MetaConstructor

public abstract class MetaMethod
extends Object
implements MetaClassMember, MetaGenericDeclaration


Constructor Summary
MetaMethod()
           
 
Method Summary
 Method asMethod()
           
 boolean equals(Object o)
           
<A extends Annotation>
A
getAnnotation(Class<A> annotation)
           
abstract  MetaClass[] getCheckedExceptions()
           
abstract  MetaType[] getGenericParameterTypes()
           
abstract  MetaType getGenericReturnType()
          Returns the MetaType representing the return type of the method.
abstract  String getName()
           
abstract  MetaParameter[] getParameters()
           
 List<MetaParameter> getParametersAnnotatedWith(Class<? extends Annotation> annotation)
           
abstract  MetaClass getReturnType()
          Returns the MetaClass representing this method's return type.
 int hashCode()
           
 String hashString()
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
abstract  boolean isVarArgs()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.codegen.meta.MetaClassMember
getDeclaringClass, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isTransient, isVolatile
 
Methods inherited from interface org.jboss.errai.codegen.meta.HasAnnotations
getAnnotations
 
Methods inherited from interface org.jboss.errai.codegen.meta.MetaGenericDeclaration
getTypeParameters
 

Constructor Detail

MetaMethod

public MetaMethod()
Method Detail

getName

public abstract String getName()
Specified by:
getName in interface MetaClassMember

getReturnType

public abstract MetaClass getReturnType()
Returns the MetaClass representing this method's return type. The returned MetaClass may have had its generic information erased.

Returns:

getGenericReturnType

public abstract MetaType getGenericReturnType()
Returns the MetaType representing the return type of the method. In the case of a plain, non-parameterized return type, this will return a MetaClass equivalent to the one returned by getReturnType(). Other possible types could be MetaWildcardType, MetaParameterizedType, and MetaTypeVariable.

As of Errai 2.2, some implementations of this method are incomplete and will return null if they cannot make sense of the method's return type.

Returns:

getGenericParameterTypes

public abstract MetaType[] getGenericParameterTypes()

getParameters

public abstract MetaParameter[] getParameters()

getCheckedExceptions

public abstract MetaClass[] getCheckedExceptions()

isVarArgs

public abstract boolean isVarArgs()

hashString

public String hashString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getAnnotation

public final <A extends Annotation> A getAnnotation(Class<A> annotation)
Specified by:
getAnnotation in interface HasAnnotations

isAnnotationPresent

public final boolean isAnnotationPresent(Class<? extends Annotation> annotation)
Specified by:
isAnnotationPresent in interface HasAnnotations

getParametersAnnotatedWith

public List<MetaParameter> getParametersAnnotatedWith(Class<? extends Annotation> annotation)

asMethod

public Method asMethod()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.