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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComponentType, getDeclaringClass, getNamepublic 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 JavaElementpublic int getModifiers()
getModifiers in interface JavaMembergetModifiers in class AbstractJavaMemberModifierpublic JavaType getType()
AbstractJavaMembergetType in interface JavaMembergetType in class AbstractJavaMemberpublic JavaType getReturnType()
getReturnType in interface JavaMethodpublic JavaType[] getParameterTypes()
getParameterTypes in interface JavaMethodpublic JavaType getJavaTypeForClass(java.lang.Class clazz)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.