public abstract class MetaMethod extends AbstractHasAnnotations implements MetaClassMember, MetaGenericDeclaration
Constructor and Description |
---|
MetaMethod() |
Modifier and Type | Method and Description |
---|---|
Method |
asMethod() |
boolean |
equals(Object o) |
<A extends Annotation> |
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() |
abstract boolean |
isVarArgs() |
String |
toString() |
isAnnotationPresent
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringClass, getDeclaringClassName, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isTransient, isVolatile
getAnnotations, isAnnotationPresent
getTypeParameters
public abstract String getName()
getName
in interface MetaClassMember
public abstract MetaClass getReturnType()
public abstract MetaType getGenericReturnType()
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.
public abstract MetaType[] getGenericParameterTypes()
public abstract MetaParameter[] getParameters()
public abstract MetaClass[] getCheckedExceptions()
public abstract boolean isVarArgs()
public String hashString()
public final <A extends Annotation> A getAnnotation(Class<A> annotation)
getAnnotation
in interface HasAnnotations
public List<MetaParameter> getParametersAnnotatedWith(Class<? extends Annotation> annotation)
public Method asMethod()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.