/** * gets a {@link TypeToken} for the given type. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Type in) { return (TypeToken<T>) get(typeTokenForType, checkNotNull(in, "class")); }
/** * return all constructors present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, T>> constructors(TypeToken<T> ownerType) { return Collection.class.cast(get(constructorsForTypeToken, ownerType)); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given type. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Type in) { return (TypeToken<T>) get(typeTokenForType, checkNotNull(in, "class")); }
/** * return all constructors present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, T>> constructors(TypeToken<T> ownerType) { return Collection.class.cast(get(constructorsForTypeToken, ownerType)); }
/** * return all constructors present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, T>> constructors(TypeToken<T> ownerType) { return Collection.class.cast(get(constructorsForTypeToken, ownerType)); }
/** * gets a {@link TypeToken} for the given type. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Type in) { return (TypeToken<T>) get(typeTokenForType, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given type. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Type in) { return (TypeToken<T>) get(typeTokenForType, checkNotNull(in, "class")); }
/** * return all constructors or static factory methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, T>> constructors(TypeToken<T> ownerType) { return Collection.class.cast(get(constructorsForTypeToken, ownerType)); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * gets a {@link TypeToken} for the given class. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Class<T> in) { return (TypeToken<T>) get(typeTokenForClass, checkNotNull(in, "class")); }
/** * return all constructors or static factory methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, T>> constructors(TypeToken<T> ownerType) { return Collection.class.cast(get(constructorsForTypeToken, ownerType)); }
/** * gets a {@link TypeToken} for the given type. */ @SuppressWarnings("unchecked") public static <T> TypeToken<T> typeToken(Type in) { return (TypeToken<T>) get(typeTokenForType, checkNotNull(in, "class")); }
/** * return all methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, Object>> methods(Class<T> ownerType) { return Collection.class.cast(get(methodsForTypeToken, typeToken(ownerType))); }
/** * return all methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, Object>> methods(Class<T> ownerType) { return Collection.class.cast(get(methodsForTypeToken, typeToken(ownerType))); }
/** * return all methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, Object>> methods(Class<T> ownerType) { return Collection.class.cast(get(methodsForTypeToken, typeToken(ownerType))); }
/** * return all methods present in the class as {@link Invokable}s. * * @param ownerType * corresponds to {@link Invokable#getOwnerType()} */ @SuppressWarnings("unchecked") public static <T> Collection<Invokable<T, Object>> methods(Class<T> ownerType) { return Collection.class.cast(get(methodsForTypeToken, typeToken(ownerType))); }