Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AbstractInvocationHandler - Class in dev.mccue.guava.reflect
-
Abstract implementation of
InvocationHandlerthat handlesObject.equals(java.lang.Object),Object.hashCode()andObject.toString(). - AbstractInvocationHandler() - Constructor for class dev.mccue.guava.reflect.AbstractInvocationHandler
- asByteSource() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
-
Returns a
ByteSourceview of the resource from which its bytes can be read. - asCharSource(Charset) - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
-
Returns a
CharSourceview of the resource from which its bytes can be read as characters decoded with the givencharset.
B
- build() - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap.Builder
-
Returns a new immutable type-to-instance map containing the entries provided to this builder.
- builder() - Static method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Returns a new builder.
C
- classes() - Method in class dev.mccue.guava.reflect.TypeToken.TypeSet
-
Returns the types that are classes.
- ClassPath - Class in dev.mccue.guava.reflect
-
Scans the source of a
ClassLoaderand finds all loadable classes and resources. - ClassPath.ClassInfo - Class in dev.mccue.guava.reflect
-
Represents a class that can be loaded through
ClassPath.ClassInfo.load(). - ClassPath.ResourceInfo - Class in dev.mccue.guava.reflect
-
Represents a class path resource that can be either a class file or any other resource file loadable from the class path.
- constructor(Constructor<?>) - Method in class dev.mccue.guava.reflect.TypeToken
D
- delegate() - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
- delegate() - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- delegate() - Method in class dev.mccue.guava.reflect.TypeToken.TypeSet
- dev.mccue.guava.reflect - module dev.mccue.guava.reflect
- dev.mccue.guava.reflect - package dev.mccue.guava.reflect
-
Utilities for reflection.
E
- entrySet() - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- equals(Object) - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
-
By default delegates to
Object.equals(java.lang.Object)so instances are only equal if they are identical. - equals(Object) - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
- equals(Object) - Method in class dev.mccue.guava.reflect.Invokable
- equals(Object) - Method in class dev.mccue.guava.reflect.Parameter
- equals(Object) - Method in class dev.mccue.guava.reflect.TypeParameter
- equals(Object) - Method in class dev.mccue.guava.reflect.TypeToken
F
- from(ClassLoader) - Static method in class dev.mccue.guava.reflect.ClassPath
-
Returns a
ClassPathrepresenting all classes and resources loadable fromclassloaderand its ancestor class loaders. - from(Constructor<T>) - Static method in class dev.mccue.guava.reflect.Invokable
-
Returns
Invokableofconstructor. - from(Method) - Static method in class dev.mccue.guava.reflect.Invokable
-
Returns
Invokableofmethod.
G
- getAllClasses() - Method in class dev.mccue.guava.reflect.ClassPath
-
Returns all classes loadable from the current class path.
- getAnnotatedReturnType() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns the
AnnotatedTypefor the return type. - getAnnotatedType() - Method in class dev.mccue.guava.reflect.Parameter
-
Returns the
AnnotatedTypeof the parameter. - getAnnotation(Class<A>) - Method in class dev.mccue.guava.reflect.Invokable
- getAnnotation(Class<A>) - Method in class dev.mccue.guava.reflect.Parameter
- getAnnotations() - Method in class dev.mccue.guava.reflect.Invokable
- getAnnotations() - Method in class dev.mccue.guava.reflect.Parameter
- getAnnotationsByType(Class<A>) - Method in class dev.mccue.guava.reflect.Parameter
- getComponentType() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the array component type if this type represents an array (
int[],T[],<? extends Map<String, Integer>[]>etc.), or elsenullis returned. - getDeclaredAnnotation(Class<A>) - Method in class dev.mccue.guava.reflect.Parameter
- getDeclaredAnnotations() - Method in class dev.mccue.guava.reflect.Invokable
- getDeclaredAnnotations() - Method in class dev.mccue.guava.reflect.Parameter
- getDeclaredAnnotationsByType(Class<A>) - Method in class dev.mccue.guava.reflect.Parameter
- getDeclaringClass() - Method in class dev.mccue.guava.reflect.Invokable
- getDeclaringInvokable() - Method in class dev.mccue.guava.reflect.Parameter
-
Returns the
Invokablethat declares this parameter. - getExceptionTypes() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns all declared exception types of this
Invokable. - getInstance(TypeToken<T>) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
- getInstance(TypeToken<T>) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- getInstance(TypeToken<T>) - Method in interface dev.mccue.guava.reflect.TypeToInstanceMap
-
Returns the value the specified type is mapped to, or
nullif no entry for this type is present. - getInstance(Class<T>) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
- getInstance(Class<T>) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- getInstance(Class<T>) - Method in interface dev.mccue.guava.reflect.TypeToInstanceMap
-
Returns the value the specified class is mapped to, or
nullif no entry for this class is present. - getModifiers() - Method in class dev.mccue.guava.reflect.Invokable
- getName() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
-
Returns the fully qualified name of the class.
- getName() - Method in class dev.mccue.guava.reflect.Invokable
- getOwnerType() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns the type of
T. - getPackageName() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
-
Returns the package name of the class, without attempting to load the class.
- getPackageName(Class<?>) - Static method in class dev.mccue.guava.reflect.Reflection
-
Returns the package name of
clazzaccording to the Java Language Specification (section 6.7). - getPackageName(String) - Static method in class dev.mccue.guava.reflect.Reflection
-
Returns the package name of
classFullNameaccording to the Java Language Specification (section 6.7). - getParameters() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns all declared parameters of this
Invokable. - getRawType() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the raw type of
T. - getResourceName() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
-
Returns the fully qualified name of the resource.
- getResources() - Method in class dev.mccue.guava.reflect.ClassPath
-
Returns all resources loadable from the current class path, including the class files of all loadable classes but excluding the "META-INF/MANIFEST.MF" file.
- getReturnType() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns the return type of this
Invokable. - getSimpleName() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
-
Returns the simple name of the underlying class as given in the source code.
- getSubtype(Class<?>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns subtype of
thiswithsubclassas the raw class. - getSupertype(Class<? super T>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the generic form of
superclass. - getTopLevelClasses() - Method in class dev.mccue.guava.reflect.ClassPath
-
Returns all top level classes loadable from the current class path.
- getTopLevelClasses(String) - Method in class dev.mccue.guava.reflect.ClassPath
-
Returns all top level classes whose package name is
packageName. - getTopLevelClassesRecursive(String) - Method in class dev.mccue.guava.reflect.ClassPath
-
Returns all top level classes whose package name is
packageNameor starts withpackageNamefollowed by a '.'. - getType() - Method in class dev.mccue.guava.reflect.Parameter
-
Returns the type of the parameter.
- getType() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the represented type.
- getTypeParameters() - Method in class dev.mccue.guava.reflect.Invokable
- getTypes() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the set of interfaces and classes that this type is or is a subtype of.
H
- handleInvocation(Object, Method, Object[]) - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
-
AbstractInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])delegates to this method upon any method invocation on the proxy instance, exceptObject.equals(java.lang.Object),Object.hashCode()andObject.toString(). - hashCode() - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
-
By default delegates to
Object.hashCode(). - hashCode() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
- hashCode() - Method in class dev.mccue.guava.reflect.Invokable
- hashCode() - Method in class dev.mccue.guava.reflect.Parameter
- hashCode() - Method in class dev.mccue.guava.reflect.TypeParameter
- hashCode() - Method in class dev.mccue.guava.reflect.TypeToken
I
- ImmutableTypeToInstanceMap<B> - Class in dev.mccue.guava.reflect
-
A type-to-instance map backed by an
ImmutableMap. - ImmutableTypeToInstanceMap.Builder<B> - Class in dev.mccue.guava.reflect
-
A builder for creating immutable type-to-instance maps.
- initialize(Class<?>...) - Static method in class dev.mccue.guava.reflect.Reflection
-
Ensures that the given classes are initialized, as described in JLS Section 12.4.2.
- interfaces() - Method in class dev.mccue.guava.reflect.TypeToken.TypeSet
-
Returns the types that are interfaces implemented by this type.
- Invokable<T,
R> - Class in dev.mccue.guava.reflect -
Wrapper around either a
Methodor aConstructor. - invoke(Object, Method, Object[]) - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
-
proxy.hashCode()delegates toAbstractInvocationHandler.hashCode()proxy.toString()delegates toAbstractInvocationHandler.toString()proxy.equals(argument)returns true if:proxyandargumentare of the same type andAbstractInvocationHandler.equals(java.lang.Object)returns true for theInvocationHandlerofargumentother method calls are dispatched toAbstractInvocationHandler.handleInvocation(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]). - invoke(T, Object...) - Method in class dev.mccue.guava.reflect.Invokable
-
Invokes with
receiveras 'this' andargspassed to the underlying method and returns the return value; or calls the underlying constructor withargsand returns the constructed instance. - isAbstract() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the method is abstract.
- isAccessible() - Method in class dev.mccue.guava.reflect.Invokable
- isAnnotationPresent(Class<? extends Annotation>) - Method in class dev.mccue.guava.reflect.Invokable
- isAnnotationPresent(Class<? extends Annotation>) - Method in class dev.mccue.guava.reflect.Parameter
- isArray() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is known to be an array type, such as
int[],T[],<? extends Map<String, Integer>[]>etc. - isFinal() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns
trueif this method is final, perModifier.isFinal(getModifiers()). - isNative() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is native.
- isOverridable() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns
trueif this is an overridable method. - isPackagePrivate() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is package-private.
- isPrimitive() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is one of the nine primitive types (including
void). - isPrivate() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is private.
- isProtected() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is protected.
- isPublic() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is public.
- isStatic() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the element is static.
- isSubtypeOf(TypeToken<?>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is a subtype of the given
type. - isSubtypeOf(Type) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is a subtype of the given
type. - isSupertypeOf(TypeToken<?>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is a supertype of the given
type. - isSupertypeOf(Type) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns true if this type is a supertype of the given
type. - isSynchronized() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns true if the method is synchronized.
- isSynthetic() - Method in class dev.mccue.guava.reflect.Invokable
- isTopLevel() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
-
Returns true if the class name "looks to be" top level (not nested), that is, it includes no '$' in the name.
- isVarArgs() - Method in class dev.mccue.guava.reflect.Invokable
-
Returns
trueif this was declared to take a variable number of arguments.
L
- load() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
-
Loads (but doesn't link or initialize) the class.
M
- method(Method) - Method in class dev.mccue.guava.reflect.TypeToken
- MutableTypeToInstanceMap<B extends @Nullable Object> - Class in dev.mccue.guava.reflect
-
A mutable type-to-instance map.
- MutableTypeToInstanceMap() - Constructor for class dev.mccue.guava.reflect.MutableTypeToInstanceMap
N
- newProxy(Class<T>, InvocationHandler) - Static method in class dev.mccue.guava.reflect.Reflection
-
Returns a proxy instance that implements
interfaceTypeby dispatching method invocations tohandler.
O
- of() - Static method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Returns an empty type to instance map.
- of(Class<T>) - Static method in class dev.mccue.guava.reflect.TypeToken
-
Returns an instance of type token that wraps
type. - of(Type) - Static method in class dev.mccue.guava.reflect.TypeToken
-
Returns an instance of type token that wraps
type.
P
- Parameter - Class in dev.mccue.guava.reflect
-
Represents a method or constructor parameter.
- put(TypeToken<? extends B>, B) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
-
Deprecated.unsupported operation
- put(TypeToken<? extends B>, B) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Deprecated.unsupported operation
- put(TypeToken<T>, T) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap.Builder
-
Associates
keywithvaluein the built map. - put(Class<T>, T) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap.Builder
-
Associates
keywithvaluein the built map. - putAll(Map<? extends TypeToken<? extends B>, ? extends B>) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
-
Deprecated.unsupported operation
- putAll(Map<? extends TypeToken<? extends B>, ? extends B>) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Deprecated.unsupported operation
- putInstance(TypeToken<T>, T) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- putInstance(TypeToken<T>, T) - Method in interface dev.mccue.guava.reflect.TypeToInstanceMap
-
Maps the specified type to the specified value.
- putInstance(TypeToken<T>, T) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Deprecated.unsupported operation
- putInstance(Class<T>, T) - Method in class dev.mccue.guava.reflect.MutableTypeToInstanceMap
- putInstance(Class<T>, T) - Method in interface dev.mccue.guava.reflect.TypeToInstanceMap
-
Maps the specified class to the specified value.
- putInstance(Class<T>, T) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap
-
Deprecated.unsupported operation
R
- rawTypes() - Method in class dev.mccue.guava.reflect.TypeToken.TypeSet
-
Returns the raw types of the types in this set, in the same order.
- Reflection - Class in dev.mccue.guava.reflect
-
Static utilities relating to Java reflection.
- resolveType(Type) - Method in class dev.mccue.guava.reflect.TypeResolver
-
Resolves all type variables in
typeand all downstream types and returns a corresponding type with type variables resolved. - resolveType(Type) - Method in class dev.mccue.guava.reflect.TypeToken
-
Resolves the given
typeagainst the type context represented by this type. - returning(TypeToken<R1>) - Method in class dev.mccue.guava.reflect.Invokable
-
Explicitly specifies the return type of this
Invokable. - returning(Class<R1>) - Method in class dev.mccue.guava.reflect.Invokable
-
Explicitly specifies the return type of this
Invokable.
S
- setAccessible(boolean) - Method in class dev.mccue.guava.reflect.Invokable
T
- toString() - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
-
By default delegates to
Object.toString(). - toString() - Method in class dev.mccue.guava.reflect.ClassPath.ClassInfo
- toString() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
- toString() - Method in class dev.mccue.guava.reflect.Invokable
- toString() - Method in class dev.mccue.guava.reflect.Parameter
- toString() - Method in class dev.mccue.guava.reflect.TypeParameter
- toString() - Method in class dev.mccue.guava.reflect.TypeToken
- trySetAccessible() - Method in class dev.mccue.guava.reflect.Invokable
- TypeParameter<T> - Class in dev.mccue.guava.reflect
-
Captures a free type variable that can be used in
TypeToken.where(dev.mccue.guava.reflect.TypeParameter<X>, dev.mccue.guava.reflect.TypeToken<X>). - TypeParameter() - Constructor for class dev.mccue.guava.reflect.TypeParameter
- TypeResolver - Class in dev.mccue.guava.reflect
-
An object of this class encapsulates type mappings from type variables.
- TypeResolver() - Constructor for class dev.mccue.guava.reflect.TypeResolver
- TypeToInstanceMap<B extends @Nullable Object> - Interface in dev.mccue.guava.reflect
-
A map, each entry of which maps a
TypeTokento an instance of that type. - TypeToken<T> - Class in dev.mccue.guava.reflect
-
A
Typewith generics. - TypeToken() - Constructor for class dev.mccue.guava.reflect.TypeToken
-
Constructs a new type token of
T. - TypeToken(Class<?>) - Constructor for class dev.mccue.guava.reflect.TypeToken
-
Constructs a new type token of
Twhile resolving free type variables in the context ofdeclaringClass. - TypeToken.TypeSet - Class in dev.mccue.guava.reflect
-
The set of interfaces and classes that
Tis or is a subtype of.
U
- unwrap() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the corresponding primitive type if this is a wrapper type; otherwise returns
thisitself. - url() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
-
Returns the url identifying the resource.
W
- where(TypeParameter<X>, TypeToken<X>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns a new
TypeTokenwhere type variables represented bytypeParamare substituted bytypeArg. - where(TypeParameter<X>, Class<X>) - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns a new
TypeTokenwhere type variables represented bytypeParamare substituted bytypeArg. - where(Type, Type) - Method in class dev.mccue.guava.reflect.TypeResolver
-
Returns a new
TypeResolverwith type variables informalmapping to types inactual. - wrap() - Method in class dev.mccue.guava.reflect.TypeToken
-
Returns the corresponding wrapper type if this is a primitive type; otherwise returns
thisitself. - writeReplace() - Method in class dev.mccue.guava.reflect.TypeToken
-
Implemented to support serialization of subclasses.
All Classes and Interfaces|All Packages|Serialized Form