Top Description Fields Constructors Methods
org.apache.tools.ant.util.regexp

public Class Jdk14RegexpRegexp

extends Jdk14RegexpMatcher
implements Regexp
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.util.regexp.Regexp, org.apache.tools.ant.util.regexp.RegexpMatcher
Imports
java.util.regex.Matcher, .Pattern, org.apache.tools.ant.BuildException

Regular expression implementation using the JDK 1.4 regular expression package

Field Summary

Modifier and TypeField and Description
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected int

Returns:

the jdk14 substitution options
getSubsOptions
(int
the ant regexp options
options
)

Convert ant regexp substitution option to jdk1.4 options.

public String

Returns:

the result of the operation
substitute
(String
The string to substitute on
input
,
String
The string which defines the substitution
argument
,
int
The list of options for the match and replace.
options
)

Implements org.apache.tools.ant.util.regexp.Regexp.substitute.

Perform a substitution on the regular expression.
Inherited from org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher:
getCompiledPatterngetCompilerOptionsgetGroupsgetGroupsgetPatternmatchesmatchessetPattern

Field Detail

DECIMALback to summary
private static final int DECIMAL

Constructor Detail

Jdk14RegexpRegexpback to summary
public Jdk14RegexpRegexp()

Method Detail

getSubsOptionsback to summary
protected int getSubsOptions(int options)

Convert ant regexp substitution option to jdk1.4 options.

Parameters
options:int

the ant regexp options

Returns:int

the jdk14 substitution options

substituteback to summary
public String substitute(String input, String argument, int options) throws BuildException

Implements org.apache.tools.ant.util.regexp.Regexp.substitute.

Perform a substitution on the regular expression.

Parameters
input:String

The string to substitute on

argument:String

The string which defines the substitution

options:int

The list of options for the match and replace.

Returns:String

the result of the operation

Annotations
@Override
Exceptions
BuildException:
on error