|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.rat.gen.SimpleValueGenerator
public class SimpleValueGenerator
A class to generate various types of values randomly.
| Field Summary | |
|---|---|
protected edu.utep.cs.jet.rat.gen.ArrayValueGenerator |
arrayGenerator
Array value generator. |
protected edu.utep.cs.jet.rat.gen.InterfaceValueGenerator |
interfaceGenerator
Interface value generator. |
| Constructor Summary | |
|---|---|
SimpleValueGenerator(ValueFactory factory)
Creates a new instance to generate a value by using the given value factory. |
|
| Method Summary | |
|---|---|
Denotable |
generate(Class<?> type,
Context ctx,
int maxHeight)
Generates a new value of the given type under the given testing context. |
protected ClassValueGenerator |
getClassValueGenerator(Class<?> type,
ValueFactory factory)
Creates a class value generator for the given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected edu.utep.cs.jet.rat.gen.ArrayValueGenerator arrayGenerator
protected edu.utep.cs.jet.rat.gen.InterfaceValueGenerator interfaceGenerator
| Constructor Detail |
|---|
public SimpleValueGenerator(ValueFactory factory)
| Method Detail |
|---|
public Denotable generate(Class<?> type,
Context ctx,
int maxHeight)
maxHeight denotes the
maximum height of tree representing the generated object; it is
used to prevent an infinite or excessive recursion during
object creation.
generate in interface ValueGenerator
protected ClassValueGenerator getClassValueGenerator(Class<?> type,
ValueFactory factory)
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||