public class StringPatternEngine extends AbstractPatternEngine
logger, randomSeed
Constructor and Description |
---|
StringPatternEngine() |
Modifier and Type | Method and Description |
---|---|
void |
configure(SongContext songContext,
Node node)
Configures the instance using the specified XML node.
|
String |
getPatternString() |
Pattern |
render(SongContext songContext,
String wildcardString)
Generates a pattern.
|
void |
setPatternString(String patternString) |
void |
setPatternTicksPerBeat(int patternTicksPerBeat) |
getRandomSeed, setRandomSeed
public Pattern render(SongContext songContext, String wildcardString)
PatternEngine
songContext
- the song contextwildcardString
- the string containing the wildcard characterspublic void configure(SongContext songContext, Node node) throws XPathException
XMLConfigurable
songContext
- the song contextnode
- the parent XML node of the configuration tagsXPathException
- in case of an XPath problempublic String getPatternString()
public void setPatternString(String patternString)
public void setPatternTicksPerBeat(int patternTicksPerBeat)