Save This Page
Home » jdo2-model-2.3-ea-src » » [javadoc | source]
public class: ReflectionJavaMethod [javadoc | source]

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.
 public ReflectionJavaMethod(Method method,
    JavaType declaringClass) 
    method - the reflection method representation.
    declaringClass - the JavaType of the class that declares the field.
Method from Summary:
getJavaTypeForClass,   getModifiers,   getParameterTypes,   getReturnType,   getType,   getUnderlyingObject
Methods from
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 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.