Save This Page
Home » jdo2-model-2.3-ea-src » org.apache.jdo.model.java » [javadoc | source]
org.apache.jdo.model.java
public interface: JavaMethod [javadoc | source]

All Implemented Interfaces:
    JavaMember

All Known Implementing Classes:
    ReflectionJavaMethod

A JavaMethod instance represents a method declared by a class. It allows to get detailed information about the method such as name, modifiers, return type, parameters, and the declaring class.

Different environments (runtime, enhancer, development) will have different JavaMethod implementations to provide answers to the various methods.

Method from org.apache.jdo.model.java.JavaMethod Summary:
getParameterTypes,   getReturnType
Method from org.apache.jdo.model.java.JavaMethod Detail:
 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.