Class RegExList
Combines one or more
RegEx together, by successively trying to match each RegEx
until success.
The order of RegExes in the list determines the order that matching is tried.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetList()The list ofRegExes that are successively tried to be matched.Returns an array of string components it matches successfully, orOptional.empty()if it cannot match.voidThe list ofRegExes 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:RegExReturns an array of string components it matches successfully, orOptional.empty()if it cannot match.- Specified by:
matchin 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:AnchorBeanBy default, we useAnchorBean.describeBean()as the string representation of the bean.- Overrides:
toStringin classAnchorBean<RegEx>- Returns:
- the string representation
-
getList
The list ofRegExes that are successively tried to be matched. -
setList
The list ofRegExes that are successively tried to be matched.
-