public class ReflectionJavaMethod extends AbstractJavaMember implements JavaMethod
java.lang.reflect.Method
instances
to get Java related metadata about methods.Constructor and Description |
---|
ReflectionJavaMethod(java.lang.reflect.Method method,
JavaType declaringClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
JavaType |
getJavaTypeForClass(java.lang.Class clazz)
Returns a JavaType instance for the specified Class object.
|
int |
getModifiers()
Returns the Java language modifiers for the field represented by
this JavaMember, as an integer.
|
JavaType[] |
getParameterTypes()
Returns an array of JavaType instances that represent the formal
parameter types, in declaration order, of the method represented by
this JavaMethod instance.
|
JavaType |
getReturnType()
Returns the JavaType representation of the method return type.
|
JavaType |
getType()
Returns the JavaType representation of the type of the memeber.
|
java.lang.Object |
getUnderlyingObject()
Returns the environment specific instance wrapped by this JavaModel
element.
|
equals, getComponentType, getDeclaringClass, getName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComponentType, getDeclaringClass, getName
public ReflectionJavaMethod(java.lang.reflect.Method method, JavaType declaringClass)
method
- the reflection method representation.declaringClass
- the JavaType of the class that declares the field.public java.lang.Object getUnderlyingObject()
java.lang.reflect.Method
instance for this JavaMethod.getUnderlyingObject
in interface JavaElement
public int getModifiers()
getModifiers
in interface JavaMember
getModifiers
in class AbstractJavaMember
Modifier
public JavaType getType()
AbstractJavaMember
getType
in interface JavaMember
getType
in class AbstractJavaMember
public JavaType getReturnType()
getReturnType
in interface JavaMethod
public JavaType[] getParameterTypes()
getParameterTypes
in interface JavaMethod
public JavaType getJavaTypeForClass(java.lang.Class clazz)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.