Top Description Methods
org.apache.tools.ant.property

public Interface PropertyExpander

extends Delegate
Imports
java.text.ParsePosition, org.apache.tools.ant.PropertyHelper

Responsible for locating a property reference inside a String.
Since
Ant 1.8.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

property name if any, else null.
parsePropertyName
(String
the String to parse.
s
,
ParsePosition
the ParsePosition in use, the location is expected to be modified if a property reference has been found (and may even be modified if no reference has been found).
pos
,
ParseNextProperty
provides access to the Project and may be used to look up property values.
parseNextProperty
)

Determine whether there is a property reference at the current ParsePosition and return its name (or null if there is none).

Method Detail

parsePropertyNameback to summary
public String parsePropertyName(String s, ParsePosition pos, ParseNextProperty parseNextProperty)

Determine whether there is a property reference at the current ParsePosition and return its name (or null if there is none).

Implementations should advance the ParsePosition to the last character that makes up the property reference. E.g. the default implementation would return "foo" for ${foo} and advance the ParsePosition to the } character.

Parameters
s:String

the String to parse.

pos:ParsePosition

the ParsePosition in use, the location is expected to be modified if a property reference has been found (and may even be modified if no reference has been found).

parseNextProperty:ParseNextProperty

provides access to the Project and may be used to look up property values.

Returns:String

property name if any, else null.