Class RuleCollector
- java.lang.Object
-
- org.nameapi.client.services.nameparser.syntax.RuleCollector
-
-
Constructor Summary
Constructors Constructor Description RuleCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleCollectoradd(NameParserRule rule)List<NameParserRule>asList()List<NameParserRule>toList()StringtoString()
-
-
-
Method Detail
-
add
@NotNull public RuleCollector add(@NotNull NameParserRule rule)
-
toList
@NotNull public List<NameParserRule> toList() throws IllegalStateException
- Returns:
- The items in an immutable list to feed to the Command.
- Throws:
IllegalStateException- If no rules have been added yet.
-
asList
@NotNull public List<NameParserRule> asList()
- Returns:
- The list as used internally, modifiable.
-
-