ix.test
Class MakeRandomInstance
java.lang.Object
ix.test.MakeRandomInstance
public class MakeRandomInstance
- extends java.lang.Object
Generate a random instance of a class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
protected XMLConfig config
syntax
protected ClassSyntax syntax
relevantClasses
protected java.util.List<java.lang.Class> relevantClasses
inheritance
protected InheritanceTree inheritance
ltfParser
protected LTF_Parser ltfParser
randomSeed
protected long randomSeed
random
protected java.util.Random random
LOWER
protected java.lang.String LOWER
UPPER
protected java.lang.String UPPER
DIGITS
protected java.lang.String DIGITS
ALPHABET
protected java.lang.String ALPHABET
randomObjectClasses
protected java.util.List<java.lang.Class> randomObjectClasses
collectionSize
protected MinMax collectionSize
MakeRandomInstance
public MakeRandomInstance()
randomize
public MakeRandomInstance randomize()
main
public static void main(java.lang.String[] argv)
makeInstance
public <T> T makeInstance(java.lang.Class<T> c)
makeConcreteInstance
protected java.lang.Object makeConcreteInstance(java.lang.Class c)
randomth
protected <E> E randomth(java.util.List<E> items)
randomIn
protected int randomIn(MinMax range)
randomIn
protected int randomIn(int min,
int max)
makeObject
protected java.lang.Object makeObject()
makePrimitive
protected java.lang.Object makePrimitive(java.lang.Class c)
makeSemiPrimitive
protected java.lang.Object makeSemiPrimitive(java.lang.Class c)
makeName
public Name makeName()
makeItemVar
public ItemVar makeItemVar()
makeDuration
public Duration makeDuration()
makeShortString
public java.lang.String makeShortString()
makeMediumString
public java.lang.String makeMediumString()
makeString
public java.lang.String makeString(java.lang.String alphabet,
int len)
makeCollection
public java.util.Collection makeCollection(java.lang.Class c)
makeCollection
public java.util.Collection makeCollection(java.lang.Class c,
java.lang.Class eltClass)
determineImplClass
protected java.lang.Class determineImplClass(java.lang.Class c)
makeLList
public LList makeLList(java.lang.Class c,
java.lang.Class eltClass)
makeMap
public java.util.Map makeMap(java.lang.Class c)
makeStruct
protected java.lang.Object makeStruct(java.lang.Class c)
makeFieldValue
protected java.lang.Object makeFieldValue(FieldDescr fd)
makeConstraint
protected Constraint makeConstraint()
makeConstraintParameters
protected java.util.List makeConstraintParameters(java.util.List parameterTemplates)
makeTimeWindow
public TimeWindow makeTimeWindow()