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
InvocationHandlerthat handlesObject.equals(java.lang.Object),Object.hashCode()andObject.toString().Scans the source of aClassLoaderand 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 aMethodor 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 fromTypeVariableto types.Wraps aroundTypeVariable<?>to ensure that any two type variables are equal as long as they are declared by the sameGenericDeclarationand have the same name, even if their bounds differ.Utilities for working withType.Decides what owner type to use for constructingParameterizedTypefrom 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 aTypeTokento an instance of that type.TypeToken<T>ATypewith generics.Collects parent types from a subtype.Based on what aTypeis, dispatch it to the correspondingvisit*method.