Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.impl.model.java.reflection » [javadoc | source]
org.apache.jdo.impl.model.java.reflection
public class: ReflectionJavaMethod [javadoc | source]
java.lang.Object
   org.apache.jdo.impl.model.java.AbstractJavaMember
      org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod

All Implemented Interfaces:
    JavaMethod, JavaMember

A reflection based JavaMethod implementation. The implementation takes java.lang.reflect.Method instances to get Java related metadata about methods.
Constructor:
 public ReflectionJavaMethod(Method method,
    JavaType declaringClass) 
    Constructor.
    Parameters:
    method - the reflection method representation.
    declaringClass - the JavaType of the class that declares the field.
Method from org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod Summary:
getJavaTypeForClass,   getModifiers,   getParameterTypes,   getReturnType,   getType,   getUnderlyingObject
Methods from org.apache.jdo.impl.model.java.AbstractJavaMember:
equals,   getComponentType,   getDeclaringClass,   getModifiers,   getName,   getType,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod Detail:
 public JavaType getJavaTypeForClass(Class clazz) 
    Returns a JavaType instance for the specified Class object. This method provides a hook such that ReflectionJavaField subclasses can implement their own mapping of Class objects to JavaType instances.
 public int getModifiers() 
    Returns the Java language modifiers for the field represented by this JavaMember, as an integer. The java.lang.reflect.Modifier class should be used to decode the modifiers.
 public 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.
 public JavaType getReturnType() 
    Returns the JavaType representation of the method return type.
 public JavaType getType() 
 public Object getUnderlyingObject() 
    Returns the environment specific instance wrapped by this JavaModel element. This implementation returns the java.lang.reflect.Method instance for this JavaMethod.