| Modifier and Type | Method and Description |
|---|---|
Automaton |
automaton()
Returns the resulting automaton.
|
Pattern |
build()
Returns the resulting pattern.
|
Pattern.PatternBuilder |
optional() |
Pattern.PatternBuilder |
or()
Creates a pattern that matches either of the two patterns at the top
of the stack,
and pushes it onto the stack.
|
Pattern.PatternBuilder |
plus()
Creates a pattern that matches the patterns at the top
of the stack one or more times,
and pushes it onto the stack.
|
Pattern.PatternBuilder |
repeat(int minRepeat,
int maxRepeat) |
Pattern.PatternBuilder |
seq()
Creates a pattern that matches the two patterns at the top of the
stack in sequence,
and pushes it onto the stack.
|
Pattern.PatternBuilder |
star()
Creates a pattern that matches the patterns at the top
of the stack zero or more times,
and pushes it onto the stack.
|
Pattern.PatternBuilder |
symbol(String symbolName)
Creates a pattern that matches symbol,
and pushes it onto the stack.
|
public Pattern build()
public Automaton automaton()
public Pattern.PatternBuilder symbol(String symbolName)
Pattern.SymbolPatternpublic Pattern.PatternBuilder seq()
public Pattern.PatternBuilder star()
public Pattern.PatternBuilder plus()
public Pattern.PatternBuilder or()
public Pattern.PatternBuilder repeat(int minRepeat, int maxRepeat)
public Pattern.PatternBuilder optional()
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.