Class InsertRegExGroups
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.io.input.bean.path.DerivePath>
org.anchoranalysis.io.input.bean.path.DerivePath
org.anchoranalysis.plugin.io.bean.path.derive.InsertRegExGroups
public class InsertRegExGroups
extends org.anchoranalysis.io.input.bean.path.DerivePath
Generates an out string where $digit$ is replaced with the #digit group from a regex
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description InsertRegExGroups()InsertRegExGroups(org.anchoranalysis.bean.shared.regex.RegEx regEx, String outPath) -
Method Summary
Modifier and Type Method Description PathderiveFrom(Path source, boolean debugMode)StringgetOutPath()Constructs a path as an output, replacing $1, $2 etc.org.anchoranalysis.bean.shared.regex.RegExgetRegEx()The regular-expression to use for matching groups.voidsetOutPath(String outPath)Constructs a path as an output, replacing $1, $2 etc.voidsetRegEx(org.anchoranalysis.bean.shared.regex.RegEx regEx)The regular-expression to use for matching groups.voidsetRegExString(String regEx)The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied.
-
Constructor Details
-
InsertRegExGroups
public InsertRegExGroups() -
InsertRegExGroups
-
-
Method Details
-
deriveFrom
public Path deriveFrom(Path source, boolean debugMode) throws org.anchoranalysis.io.input.path.DerivePathException- Specified by:
deriveFromin classorg.anchoranalysis.io.input.bean.path.DerivePath- Throws:
org.anchoranalysis.io.input.path.DerivePathException
-
setRegExString
The regular-expression to use for matching groups, overloaded to handle legacy situations where a string is supplied. -
setRegEx
public void setRegEx(org.anchoranalysis.bean.shared.regex.RegEx regEx)The regular-expression to use for matching groups. -
getRegEx
public org.anchoranalysis.bean.shared.regex.RegEx 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.
-