@Test public void return_type() { MethodDescriptor method = getMethodDescriptor(); TypeDescriptor returnType = method.getReturnType(); assertThat(returnType.getRawType()).isEqualTo(Set.class); assertThat(returnType.resolveGenericParameter(Set.class, 0).getRawType()).isEqualTo(Integer.class); }
public TypeDescriptor getReturnType() { return resolveType(method.getGenericReturnType()); }
MethodDescriptor extends AbstractMethodDescriptor<Method> implements StaticExecutable { public TypeDescriptor getReturnType() { return resolveType(method.getGenericReturnType()); } }
MethodDescriptor extends AbstractMethodDescriptor<Method> implements StaticExecutable { public TypeDescriptor getReturnType() { return resolveType(method.getGenericReturnType()); } MethodDescriptor(TypeDescriptor declaringType, Method method); }
MethodDescriptor extends AbstractMethodDescriptor<Method> implements StaticExecutable { public TypeDescriptor getReturnType() { return resolveType(method.getGenericReturnType()); } MethodDescriptor(TypeDescriptor declaringType, Method method); TypeDescriptor getReturnType(); Class<?> getRawReturnType(); List<ParameterDescriptor> getParameters(); int getParameterCount(); String getName(); List<Class<?>> getParameterTypes(); @Override Object invokeStatic(Object... args); Object invoke(Object object, Object... args); @Override boolean equals(Object obj); @Override int hashCode(); boolean applies(TypeDescriptor typeDescriptor); String toString(); @Override Method getElement(); }
MethodDescriptor extends AbstractMethodDescriptor<Method> implements StaticExecutable { public TypeDescriptor getReturnType() { return resolveType(method.getGenericReturnType()); } MethodDescriptor(TypeDescriptor declaringType, Method method); TypeDescriptor getReturnType(); Class<?> getRawReturnType(); List<ParameterDescriptor> getParameters(); int getParameterCount(); String getName(); List<Class<?>> getParameterTypes(); @Override Object invokeStatic(Object... args); Object invoke(Object object, Object... args); @Override boolean equals(Object obj); @Override int hashCode(); boolean applies(TypeDescriptor typeDescriptor); String toString(); @Override Method getElement();  }