com.caucho.config.reflect
Class AnnotatedMethodImpl<T>

java.lang.Object
  extended by com.caucho.config.reflect.AnnotatedElementImpl
      extended by com.caucho.config.reflect.AnnotatedMethodImpl<T>
All Implemented Interfaces:
BaseTypeAnnotated, Annotated, AnnotatedCallable<T>, AnnotatedMember<T>, AnnotatedMethod<T>

@Module
public class AnnotatedMethodImpl<T>
extends AnnotatedElementImpl
implements AnnotatedMethod<T>

Abstract introspected view of a Bean


Constructor Summary
AnnotatedMethodImpl(AnnotatedType<T> declaringType, Annotated annotated, java.lang.reflect.Method method)
           
AnnotatedMethodImpl(AnnotatedType<T> declaringType, Annotated annotated, java.lang.reflect.Method method, java.lang.annotation.Annotation[] annotations, java.util.HashMap<java.lang.String,BaseType> paramMap)
           
AnnotatedMethodImpl(java.lang.reflect.Method method)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected  void fillTypeVariables(java.util.Set<VarType<?>> typeVariables)
           
 AnnotatedType<T> getDeclaringType()
          Returns the declaring type
 java.lang.reflect.Method getJavaMember()
          Returns the reflected Method
 java.util.List<AnnotatedParameter<T>> getParameters()
          Returns the constructor parameters
 int hashCode()
           
static boolean isMatch(java.lang.reflect.Method methodA, java.lang.reflect.Method methodB)
           
 boolean isStatic()
          Returns true for a static field/method
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.reflect.AnnotatedElementImpl
addAnnotation, addAnnotationIfAbsent, addAnnotations, addAnnotations, clearAnnotations, createBaseType, createBaseType, createBaseType, createBaseType, createBaseType, createBaseType, createBaseType, getAnnotation, getAnnotations, getBaseType, getBaseTypeImpl, getBaseTypeParamMap, getTypeClosure, getTypeVariables, isAnnotationPresent, removeAnnotation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

AnnotatedMethodImpl

public AnnotatedMethodImpl(java.lang.reflect.Method method)

AnnotatedMethodImpl

public AnnotatedMethodImpl(AnnotatedType<T> declaringType,
                           Annotated annotated,
                           java.lang.reflect.Method method)

AnnotatedMethodImpl

public AnnotatedMethodImpl(AnnotatedType<T> declaringType,
                           Annotated annotated,
                           java.lang.reflect.Method method,
                           java.lang.annotation.Annotation[] annotations,
                           java.util.HashMap<java.lang.String,BaseType> paramMap)
Method Detail

getDeclaringType

public AnnotatedType<T> getDeclaringType()
Description copied from interface: AnnotatedMember
Returns the declaring type

Specified by:
getDeclaringType in interface AnnotatedMember<T>

getJavaMember

public java.lang.reflect.Method getJavaMember()
Returns the reflected Method

Specified by:
getJavaMember in interface AnnotatedMember<T>
Specified by:
getJavaMember in interface AnnotatedMethod<T>

getParameters

public java.util.List<AnnotatedParameter<T>> getParameters()
Returns the constructor parameters

Specified by:
getParameters in interface AnnotatedCallable<T>

isStatic

public boolean isStatic()
Description copied from interface: AnnotatedMember
Returns true for a static field/method

Specified by:
isStatic in interface AnnotatedMember<T>

fillTypeVariables

protected void fillTypeVariables(java.util.Set<VarType<?>> typeVariables)
Overrides:
fillTypeVariables in class AnnotatedElementImpl

isMatch

public static boolean isMatch(java.lang.reflect.Method methodA,
                              java.lang.reflect.Method methodB)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class AnnotatedElementImpl