Top Description Interfaces Annotations Classes
[default module]

Package com.google.common.reflect

Annotations
@CheckReturnValue
@ParametersAreNonnullByDefault
Imports
com.google.errorprone.annotations.CheckReturnValue, javax.annotation.ParametersAreNonnullByDefault

Utilities for reflection. This package is a part of the open-source Guava library.

Interface Summary

Modifier and TypeInterface and Description
public interface
TypeToInstanceMap<
the common supertype that all entries must share; often this is simply Object
B extends @Nullable Object
>

A map, each entry of which maps a TypeToken to an instance of that type.

Annotation Summary

Modifier and TypeAnnotation and Description
pack-priv @interface
ElementTypesAreNonnullByDefault

Marks all "top-level" types as non-null in a way that is recognized by Kotlin.

pack-priv @interface
IgnoreJRERequirement

Disables Animal Sniffer's checking of compatibility with older versions of Java/Android.

pack-priv @interface
ParametricNullness

Annotates a "top-level" type-variable usage that takes its nullness from the type argument supplied by the user of the class.

Class Summary

Modifier and TypeClass and Description
public abstract class
public class
ClassPath

Scans the source of a ClassLoader and finds all loadable classes and resources.

public class
ImmutableTypeToInstanceMap<B>

A type-to-instance map backed by an ImmutableMap.

public abstract class
Invokable<
the type that owns this method or constructor.
T
,
the return type of (or supertype thereof) the method or the declaring type of the constructor.
R
>

Wrapper around either a Method or a Constructor.

public class
MutableTypeToInstanceMap<B extends @Nullable Object>

A mutable type-to-instance map.

public class
Parameter

Represents a method or constructor parameter.

public class
Reflection

Static utilities relating to Java reflection.

pack-priv abstract class
TypeCapture<T>

Captures the actual type of T.

public abstract class
TypeParameter<T>

Captures a free type variable that can be used in TypeToken#where.

public class
TypeResolver

An object of this class encapsulates type mappings from type variables.

pack-priv class
Types

Utilities for working with Type.

public abstract class
TypeToken<T>

A Type with generics.

pack-priv abstract class
TypeVisitor

Based on what a Type is, dispatch it to the corresponding visit* method.