org.unitils.objectvalidation.objectcreator.generator
Class TypeVariableImplGenerator

java.lang.Object
  extended by org.unitils.objectvalidation.objectcreator.generator.TypeVariableImplGenerator
All Implemented Interfaces:
Generator

public class TypeVariableImplGenerator
extends Object
implements Generator

Generate objects of type TypeVariableImpl.

Since:
1.1.8
Author:
Willemijn Wouters

Constructor Summary
TypeVariableImplGenerator(ObjectCreator objectCreator)
           
 
Method Summary
 Object createObjectOfTypeVariableImpl(sun.reflect.generics.reflectiveObjects.TypeVariableImpl<?> type)
           
 Object generateObject(Class<?> clazz, List<Object> input, List<Class<?>> inputClasses, List<TreeNode> genericSubTypes)
           
protected  boolean shouldCreateThisObject(Class<?> clazz, List<TreeNode> genericSubTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeVariableImplGenerator

public TypeVariableImplGenerator(ObjectCreator objectCreator)
Method Detail

generateObject

public Object generateObject(Class<?> clazz,
                             List<Object> input,
                             List<Class<?>> inputClasses,
                             List<TreeNode> genericSubTypes)
                      throws Exception
Specified by:
generateObject in interface Generator
Parameters:
clazz - The class of the object to generate
input - the parameters to give to the constructor
inputClasses - the types of the constructor parameters
genericSubTypes - if clazz has generic parameters here they should be entered
Returns:
Object a randomly generated object or null if it was impossible to generate
Throws:
Exception - if illegal calls to object constructors.
See Also:
Generator.generateObject(java.lang.Class, java.util.List, java.util.List, java.util.List)

shouldCreateThisObject

protected boolean shouldCreateThisObject(Class<?> clazz,
                                         List<TreeNode> genericSubTypes)

createObjectOfTypeVariableImpl

public Object createObjectOfTypeVariableImpl(sun.reflect.generics.reflectiveObjects.TypeVariableImpl<?> type)


Copyright © 2013-2015. All Rights Reserved.