public abstract class AbstractStringGenerator extends Generator<String>
Base class for generators of values of type String
.
The generated values will have String.length() decided by
GenerationStatus.size()
.
Modifier | Constructor and Description |
---|---|
protected |
AbstractStringGenerator() |
Modifier and Type | Method and Description |
---|---|
boolean |
canShrink(Object larger) |
protected abstract boolean |
codePointInRange(int codePoint) |
List<String> |
doShrink(SourceOfRandomness random,
String larger) |
String |
generate(SourceOfRandomness random,
GenerationStatus status) |
protected abstract int |
nextCodePoint(SourceOfRandomness random) |
addComponentGenerators, canGenerateForParametersOfTypes, canRegisterAsType, compatibleWithTypeParameter, configurationAnnotationsOn, configure, configure, gen, hasComponents, narrow, numberOfNeededComponents, provide, shrink, types
public String generate(SourceOfRandomness random, GenerationStatus status)
public List<String> doShrink(SourceOfRandomness random, String larger)
protected abstract int nextCodePoint(SourceOfRandomness random)
protected abstract boolean codePointInRange(int codePoint)
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu