Index

A B C D E F G H I L M N O P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractInvocationHandler - Class in dev.mccue.guava.reflect
AbstractInvocationHandler() - Constructor for class dev.mccue.guava.reflect.AbstractInvocationHandler
 
asByteSource() - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
Returns a ByteSource view of the resource from which its bytes can be read.
asCharSource(Charset) - Method in class dev.mccue.guava.reflect.ClassPath.ResourceInfo
Returns a CharSource view of the resource from which its bytes can be read as characters decoded with the given charset.

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 ClassLoader and 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
Returns the Invokable for constructor, which must be a member of T.

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
Returns true if o is another TypeToken that represents the same Type.

F

from(ClassLoader) - Static method in class dev.mccue.guava.reflect.ClassPath
Returns a ClassPath representing all classes and resources loadable from classloader and its ancestor class loaders.
from(Constructor<T>) - Static method in class dev.mccue.guava.reflect.Invokable
Returns Invokable of constructor.
from(Method) - Static method in class dev.mccue.guava.reflect.Invokable
Returns Invokable of method.

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 AnnotatedType for the return type.
getAnnotatedType() - Method in class dev.mccue.guava.reflect.Parameter
Returns the AnnotatedType of 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 else null is 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 Invokable that 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 null if 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 null if 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 clazz according to the Java Language Specification (section 6.7).
getPackageName(String) - Static method in class dev.mccue.guava.reflect.Reflection
Returns the package name of classFullName according 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 this with subclass as 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 packageName or starts with packageName followed 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
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 Method or a Constructor.
invoke(Object, Method, Object[]) - Method in class dev.mccue.guava.reflect.AbstractInvocationHandler
proxy.hashCode() delegates to AbstractInvocationHandler.hashCode() proxy.toString() delegates to AbstractInvocationHandler.toString() proxy.equals(argument) returns true if: proxy and argument are of the same type and AbstractInvocationHandler.equals(java.lang.Object) returns true for the InvocationHandler of argument other method calls are dispatched to AbstractInvocationHandler.handleInvocation(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]).
invoke(T, Object...) - Method in class dev.mccue.guava.reflect.Invokable
Invokes with receiver as 'this' and args passed to the underlying method and returns the return value; or calls the underlying constructor with args and 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 true if this method is final, per Modifier.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 true if 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 true if 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
Returns the Invokable for method, which must be a member of T.
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 interfaceType by dispatching method invocations to handler.

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 key with value in the built map.
put(Class<T>, T) - Method in class dev.mccue.guava.reflect.ImmutableTypeToInstanceMap.Builder
Associates key with value in 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 type and 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 type against 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
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 TypeToken to an instance of that type.
TypeToken<T> - Class in dev.mccue.guava.reflect
A Type with 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 T while resolving free type variables in the context of declaringClass.
TypeToken.TypeSet - Class in dev.mccue.guava.reflect
The set of interfaces and classes that T is 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 this itself.
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 TypeToken where type variables represented by typeParam are substituted by typeArg.
where(TypeParameter<X>, Class<X>) - Method in class dev.mccue.guava.reflect.TypeToken
Returns a new TypeToken where type variables represented by typeParam are substituted by typeArg.
where(Type, Type) - Method in class dev.mccue.guava.reflect.TypeResolver
Returns a new TypeResolver with type variables in formal mapping to types in actual.
wrap() - Method in class dev.mccue.guava.reflect.TypeToken
Returns the corresponding wrapper type if this is a primitive type; otherwise returns this itself.
writeReplace() - Method in class dev.mccue.guava.reflect.TypeToken
Implemented to support serialization of subclasses.
A B C D E F G H I L M N O P R S T U W 
All Classes and Interfaces|All Packages|Serialized Form