@ParametersAreNonnullByDefault
Package com.google.common.reflect
This package contains utilities to work with Java reflection. It is a part of the open-source Guava library.
-
Interface Summary Interface Description TypeToInstanceMap<B> A map, each entry of which maps aTypeTokento an instance of that type. -
Class Summary Class Description AbstractInvocationHandler Abstract implementation ofInvocationHandlerthat handlesObject.equals(java.lang.Object),Object.hashCode()andObject.toString().ClassPath Scans the source of aClassLoaderand finds all loadable classes and resources.ClassPath.ClassInfo Represents a class that can be loaded throughClassPath.ClassInfo.load().ClassPath.LocationInfo Represents a single location (a directory or a jar file) in the class path and is responsible for scanning resources from this location.ClassPath.ResourceInfo Represents a class path resource that can be either a class file or any other resource file loadable from the class path.Element Represents either aField, aMethodor aConstructor.ImmutableTypeToInstanceMap<B> A type-to-instance map backed by anImmutableMap.ImmutableTypeToInstanceMap.Builder<B> A builder for creating immutable type-to-instance maps.Invokable<T,R> Wrapper around either aMethodor aConstructor.Invokable.ConstructorInvokable<T> Invokable.MethodInvokable<T> MutableTypeToInstanceMap<B> A mutable type-to-instance map.MutableTypeToInstanceMap.UnmodifiableEntry<K,V> Parameter Represents a method or constructor parameter.Reflection Static utilities relating to Java reflection.TypeCapture<T> Captures the actual type ofT.TypeParameter<T> Captures a free type variable that can be used inTypeToken.where(com.google.common.reflect.TypeParameter<X>, com.google.common.reflect.TypeToken<X>).TypeResolver An object of this class encapsulates type mappings from type variables.TypeResolver.TypeMappingIntrospector TypeResolver.TypeTable A TypeTable maintains mapping fromTypeVariableto types.TypeResolver.TypeVariableKey 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.TypeResolver.WildcardCapturer Types Utilities for working withType.Types.GenericArrayTypeImpl Types.NativeTypeVariableEquals<X> 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.ParameterizedTypeImpl Types.TypeVariableImpl<D extends java.lang.reflect.GenericDeclaration> Types.TypeVariableInvocationHandler Invocation handler to work around a compatibility problem between Java 7 and Java 8.Types.WildcardTypeImpl TypeToken<T> ATypewith generics.TypeToken.Bounds TypeToken.SimpleTypeToken<T> TypeToken.TypeCollector<K> Collects parent types from a sub type.TypeToken.TypeCollector.ForwardingTypeCollector<K> TypeVisitor Based on what aTypeis, dispatch it to the correspondingvisit*method. -
Enum Summary Enum Description Types.ClassOwnership Decides what owner type to use for constructingParameterizedTypefrom a raw class.Types.JavaVersion TypeToken.TypeFilter