public final Type getResultType ( ) { Type type = resultTypeToken . getType ( ) ; if ( type instanceof Class || type instanceof ParameterizedType || type instanceof GenericArrayType ) { return type ; } else { throw new IllegalArgumentException ( "Cannot resolve result type: " + resultTypeToken ) ; } }
Get the method result type .