org.apache.tools.ant.property

Class LocalPropertyStack

public class LocalPropertyStack extends Object

A stack of local property maps. There is a map for each scope (target, sequential, macro).

Since: Ant 1.8.0

Method Summary
voidaddLocal(String property)
Add a local property.
LocalPropertyStackcopy()
Copy the stack for a parallel thread.
voidenterScope()
Enter the local scope.
Objectevaluate(String property, PropertyHelper helper)
Evaluate a property.
voidexitScope()
Exit the local scope.
booleanset(String property, Object value, PropertyHelper propertyHelper)
Set a property.
booleansetNew(String property, Object value, PropertyHelper propertyHelper)
Set a *new" property.

Method Detail

addLocal

public void addLocal(String property)
Add a local property.

Parameters: property the name of the local proeprty.

copy

public LocalPropertyStack copy()
Copy the stack for a parallel thread.

Returns: a copy.

enterScope

public void enterScope()
Enter the local scope.

evaluate

public Object evaluate(String property, PropertyHelper helper)
Evaluate a property.

Parameters: property the property's String "identifier". helper the invoking PropertyHelper.

Returns: Object value.

exitScope

public void exitScope()
Exit the local scope.

set

public boolean set(String property, Object value, PropertyHelper propertyHelper)
Set a property.

Parameters: property the property's String "identifier". value the value to set. propertyHelper the invoking PropertyHelper.

Returns: true if this entity 'owns' the property.

setNew

public boolean setNew(String property, Object value, PropertyHelper propertyHelper)
Set a *new" property.

Parameters: property the property's String "identifier". value the value to set. propertyHelper the invoking PropertyHelper.

Returns: true if this entity 'owns' the property.