Package picasso.generator
Class StringExpressionGenerator
- java.lang.Object
-
- picasso.generator.StringExpressionGenerator
-
public class StringExpressionGenerator extends Object
Generates Picasso expressions based on an input string The same input text will always produce the same expression
-
-
Constructor Summary
Constructors Constructor Description StringExpressionGenerator()Creates a new StringExpressionGenerator Disables random() in generated expressions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringgenerate(String input)Generates an expression based on the input string The same string will always produce the same expressionRandomExpressionGeneratorgetGenerator()Gets the underlying RandomExpressionGenerator
-
-
-
Method Detail
-
generate
public String generate(String input)
Generates an expression based on the input string The same string will always produce the same expression- Parameters:
input- the text to generate art from- Returns:
- a Picasso expression string (without random())
-
getGenerator
public RandomExpressionGenerator getGenerator()
Gets the underlying RandomExpressionGenerator- Returns:
- the RandomExpressionGenerator instance
-
-