org.apache.jdo.impl.model.java.runtime.jdk5
Class JDK5RuntimeJavaMethod
java.lang.Object
org.apache.jdo.impl.model.java.AbstractJavaMember
org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod
org.apache.jdo.impl.model.java.runtime.jdk5.JDK5RuntimeJavaMethod
- All Implemented Interfaces:
- org.apache.jdo.model.java.JavaElement, org.apache.jdo.model.java.JavaMember, org.apache.jdo.model.java.JavaMethod
public class JDK5RuntimeJavaMethod
- extends org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod
A reflection based JavaMethod implementation used at runtime in a
J2SE5.0 environment.
- Author:
- Michael Bouschen
|
Constructor Summary |
JDK5RuntimeJavaMethod(java.lang.reflect.Method method,
org.apache.jdo.model.java.JavaType declaringClass)
Constructor. |
|
Method Summary |
org.apache.jdo.model.java.JavaType |
getComponentType()
Returns the JavaType representation of the component type of the return
type of the method, if the method return type is an array or
collection. |
| Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaMethod |
getJavaTypeForClass, getModifiers, getParameterTypes, getReturnType, getType, getUnderlyingObject |
| Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaMember |
equals, 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 |
getDeclaringClass, getName |
JDK5RuntimeJavaMethod
public JDK5RuntimeJavaMethod(java.lang.reflect.Method method,
org.apache.jdo.model.java.JavaType declaringClass)
- Constructor.
- Parameters:
method - the reflection method representation.declaringClass - the JavaType of the class that declares the
method.
getComponentType
public org.apache.jdo.model.java.JavaType getComponentType()
- Returns the JavaType representation of the component type of the return
type of the method, if the method return type is an array or
collection. The method returns
null, if the property type
is not an array or collection.
- Specified by:
getComponentType in interface org.apache.jdo.model.java.JavaMember- Overrides:
getComponentType in class org.apache.jdo.impl.model.java.AbstractJavaMember
- Returns:
- the component type of the method return type in case of an
array or collection.
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.