org.jboss.errai.codegen.meta
Class MetaMethod
java.lang.Object
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
Methods inherited from interface org.jboss.errai.codegen.meta.MetaClassMember |
getDeclaringClass, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isSynchronized, isSynthetic, isTransient, isVolatile |
MetaMethod
public MetaMethod()
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()
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.