Klasse PatternOperation
java.lang.Object
org.apache.ant.props.RegexBasedEvaluator
org.apache.ant.props.stringops.PatternOperation
- Alle implementierten Schnittstellen:
org.apache.tools.ant.PropertyHelper.Delegate, org.apache.tools.ant.PropertyHelper.PropertyEvaluator
- Bekannte direkte Unterklassen:
DeletePartOperation, ReplaceOperation
Abstract pattern-based operation.
-
Konstruktorübersicht
KonstruktorenModifikatorKonstruktorBeschreibungprotectedPatternOperation(String regex) Construct a new PatternOperation. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected voidConvert a *nix-style pattern to a regex pattern.protected voidconvertToRegex(StringBuffer sb, boolean greedy) Convert a *nix-style pattern to a regex pattern.protected org.apache.tools.ant.util.regexp.RegexpcreateRegexp(String pattern, org.apache.tools.ant.Project project) Create an Ant Regexp object.protected voiddeEscape(char c, StringBuffer sb) De-escape a given character.protected StringConvert a *nix-style pattern to a regex pattern.protected StringConvert a *nix-style pattern to a regex pattern.Von Klasse geerbte Methoden RegexBasedEvaluator
addOption, evaluate, evaluate, getPattern, getRegularExpression, setPattern
-
Konstruktordetails
-
PatternOperation
Construct a new PatternOperation.
-
-
Methodendetails
-
convertToRegex
Convert a *nix-style pattern to a regex pattern.- Parameter:
sb- StringBuffer to convert.
-
convertToRegex
Convert a *nix-style pattern to a regex pattern.- Parameter:
sb- StringBuffer to convert.greedy- whether to be greedy.
-
toRegex
-
toRegex
-
createRegexp
protected org.apache.tools.ant.util.regexp.Regexp createRegexp(String pattern, org.apache.tools.ant.Project project) Create an Ant Regexp object.- Parameter:
pattern- the regex pattern to use.project- the associated Project instance.- Gibt zurück:
- Regexp
-
deEscape
De-escape a given character.- Parameter:
c- the character to "unmask".sb- the target StringBuffer.
-