Class RegExList
Combines one or more
RegEx
together, by successively trying to match each RegEx
until success.
The order of RegEx
es in the list determines the order that matching is tried.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetList()
The list ofRegEx
es that are successively tried to be matched.Returns an array of string components it matches successfully, orOptional.empty()
if it cannot match.void
The list ofRegEx
es that are successively tried to be matched.toString()
By default, we useAnchorBean.describeBean()
as the string representation of the bean.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
RegExList
public RegExList()
-
-
Method Details
-
match
Description copied from class:RegEx
Returns an array of string components it matches successfully, orOptional.empty()
if it cannot match.- Specified by:
match
in classRegEx
- Parameters:
string
- string to match against the regular-expression.- Returns:
- an array of string components representing each group in the match, or
Optional.empty()
if no match is possible.
-
toString
Description copied from class:AnchorBean
By default, we useAnchorBean.describeBean()
as the string representation of the bean.- Overrides:
toString
in classAnchorBean<RegEx>
- Returns:
- the string representation
-
getList
The list ofRegEx
es that are successively tried to be matched. -
setList
The list ofRegEx
es that are successively tried to be matched.
-