Class InsertRegExGroups
Generates an out string where $digit$ is replaced with the #digit group from a regex
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionInsertRegExGroups
(RegEx regEx, String outPath) Creates a newInsertRegExGroups
instance. -
Method Summary
Modifier and TypeMethodDescriptionderiveFrom
(Path source, boolean debugMode) Derives a new path from an existing path.Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression.getRegEx()
The regular-expression to use for matching groups.void
setOutPath
(String outPath) Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression.void
The regular-expression to use for matching groups.void
setRegExString
(String regEx) The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied.Methods inherited from class org.anchoranalysis.io.input.bean.path.DerivePath
deriveFrom
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
InsertRegExGroups
public InsertRegExGroups()
-
-
Method Details
-
deriveFrom
Description copied from class:DerivePath
Derives a new path from an existing path.- Specified by:
deriveFrom
in classDerivePath
- Parameters:
source
- the path to derive from.debugMode
- true if debug-mode is activated- Returns:
- the derived path.
- Throws:
DerivePathException
- if anything goes wrong
-
setRegExString
The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied. -
getRegEx
The regular-expression to use for matching groups. -
getOutPath
Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression. -
setOutPath
Constructs a path as an output, replacing $1, $2 etc. with the respective group from the matched regular-expression.
-