com.google.common.truth.codegen
Class IteratingWrapperClassBuilder

java.lang.Object
  extended by com.google.common.truth.codegen.IteratingWrapperClassBuilder

@GwtIncompatible(value="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.


Field Summary
 String className
           
 
Constructor Summary
IteratingWrapperClassBuilder(SubjectFactory<?,?> subjectFactory)
           
 
Method Summary
 String build()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public final String className
Constructor Detail

IteratingWrapperClassBuilder

public IteratingWrapperClassBuilder(SubjectFactory<?,?> subjectFactory)
Method Detail

build

public String build()


Copyright © 2014. All rights reserved.