Package com.google.common.reflect
@ParametersAreNonnullByDefault
package com.google.common.reflect
Utilities for reflection. This package is a part of the open-source Guava library.
-
ClassDescriptionAbstract implementation of
InvocationHandler
that handlesObject.equals(java.lang.Object)
,Object.hashCode()
andObject.toString()
.Scans the source of aClassLoader
and finds all loadable classes and resources.Represents a class that can be loaded throughClassPath.ClassInfo.load()
.Represents a single location (a directory or a jar file) in the class path and is responsible for scanning resources from this location.Represents a class path resource that can be either a class file or any other resource file loadable from the class path.Marks all "top-level" types as non-null in a way that is recognized by Kotlin.Disables Animal Sniffer's checking of compatibility with older versions of Java/Android.A type-to-instance map backed by anImmutableMap
.A builder for creating immutable type-to-instance maps.Invokable<T,R> Wrapper around either aMethod
or aConstructor
.A mutable type-to-instance map.Represents a method or constructor parameter.Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.Static utilities relating to Java reflection.TypeCapture<T>Captures the actual type ofT
.Captures a free type variable that can be used inTypeToken.where(com.google.common.reflect.TypeParameter<X>, com.google.common.reflect.TypeToken<X>)
.An object of this class encapsulates type mappings from type variables.A TypeTable maintains mapping fromTypeVariable
to types.Wraps aroundTypeVariable<?>
to ensure that any two type variables are equal as long as they are declared by the sameGenericDeclaration
and have the same name, even if their bounds differ.Utilities for working withType
.Decides what owner type to use for constructingParameterizedType
from a raw class.Per issue 1635, In JDK 1.7.0_51-b13,Types.TypeVariableImpl.equals(Object)
is changed to no longer be equal to custom TypeVariable implementations.Types.TypeVariableImpl<D extends GenericDeclaration>Invocation handler to work around a compatibility problem between Java 7 and Java 8.A map, each entry of which maps aTypeToken
to an instance of that type.TypeToken<T>AType
with generics.Collects parent types from a subtype.Based on what aType
is, dispatch it to the correspondingvisit*
method.