Method getReturnType()
Return type:
java.lang.Class
<Class<?>>
Member of:
java.lang.reflect.Method
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
aMethod.getParameterTypes(), aMethod.getReturnType());
2
return new ReflectionClassStructure(mth.getReturnType());
3
Class returnType = m.getReturnType();
4
getMethod().getReturnType());
5
Class returnType = theMethod.getReturnType();
6
if (name.startsWith("read") && methods[i].getReturnType() == void.class) {
7
TypeDesc ret = TypeDesc.forClass(method.getReturnType());
8
Class returnType = method.getReturnType();
9
System.out.print (m.getReturnType() + " " + m.getName() + " (");
10
Class returnType = method.getReturnType();
11
if (!lastMethodCall.getMethod().getReturnType().equals(clazz)) {
12
return Util.makeJObj(obj.invoke(o,params), obj.getReturnType());
13
methods[i].getReturnType().getName() + " " +
14
.getReturnType();
15
if (!m1.getReturnType().equals(m2.getReturnType())) {
16
if (method.getReturnType() != Void.TYPE)
17
methods[i].getReturnType());
18
Class returnTypeClass = getter.getReturnType();
19
if (method != null && Throwable.class.isAssignableFrom(method.getReturnType())) {
20
if (Modifier.isPublic(method.getModifiers()) && method.getName().startsWith("get") && throwable.isAssignableFrom(method.getReturnType()) && (method.getParameterTypes().length == 0)) {
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.