|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.AbstractJavaMember
org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod
A reflection based JavaMethod implementation.
The implementation takes java.lang.reflect.Method
instances
to get Java related metadata about methods.
Field Summary | |
private java.lang.reflect.Method |
method
The wrapped java.lang.reflect.Method instance. |
Fields inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember |
|
Constructor Summary | |
ReflectionJavaMethod(java.lang.reflect.Method method,
JavaType declaringClass)
Constructor. |
Method Summary | |
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 member. |
java.lang.Object |
getUnderlyingObject()
Returns the environment specific instance wrapped by this JavaModel element. |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember |
equals, getComponentType, getDeclaringClass, getName, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jdo.model.java.JavaMember |
getComponentType, getDeclaringClass, getName |
Field Detail |
private final java.lang.reflect.Method method
Constructor Detail |
public ReflectionJavaMethod(java.lang.reflect.Method method, JavaType declaringClass)
method
- the reflection method representation.declaringClass
- the JavaType of the class that declares the field.Method Detail |
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()
JavaMember
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |