Package com.google.common.truth.codegen
Class IteratingWrapperClassBuilder
- java.lang.Object
-
- com.google.common.truth.codegen.IteratingWrapperClassBuilder
-
@GwtIncompatible("java.lang.reflect.*") public class IteratingWrapperClassBuilder extends Object
A builder of classes to wrap a provided SubjectFactory's concrete Subject subclass. The generated class will be a direct subclass of the concrete Subject subclass, but each public, protected, or friendly method not declared by Object will be wrapped such that invocations on it will be invoked on a new Subject instance populated with an element in the provided collection. This allows for a type-safe, IDE-discoverable Subject in a for-each style.
-
-
Constructor Summary
Constructors Constructor Description IteratingWrapperClassBuilder(SubjectFactory<?,?> subjectFactory)
-
-
-
Field Detail
-
className
public final String className
-
-
Constructor Detail
-
IteratingWrapperClassBuilder
public IteratingWrapperClassBuilder(SubjectFactory<?,?> subjectFactory)
-
-
Method Detail
-
build
public String build()
-
-