org.apache.jdo.model.java
Interface JavaMethod

All Superinterfaces:
JavaElement, JavaMember
All Known Implementing Classes:
ReflectionJavaMethod

public interface JavaMethod
extends JavaMember

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.

Version:
JDO 2.0
Author:
Michael Bouschen

Method Summary
 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.
 
Methods inherited from interface org.apache.jdo.model.java.JavaMember
getComponentType, getDeclaringClass, getModifiers, getName, getType
 
Methods inherited from interface org.apache.jdo.model.java.JavaElement
getUnderlyingObject
 

Method Detail

getReturnType

public JavaType getReturnType()
Returns the JavaType representation of the method return type.

Returns:
method return type.

getParameterTypes

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.

Returns:
the types of teh formal parameters.