Package org.apache.tools.ant.property
Class LocalPropertyStack
java.lang.Object
org.apache.tools.ant.property.LocalPropertyStack
A stack of local property maps.
There is a map for each scope (target, sequential, macro).
- Since:
- Ant 1.8.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a local property.copy()
Copy the stack for a parallel thread.void
Enter the local scope.evaluate
(String property, PropertyHelper helper) Evaluate a property.void
Exit the local scope.Returns the names of all known local properties.boolean
set
(String property, Object value, PropertyHelper propertyHelper) Set a property.boolean
setNew
(String property, Object value, PropertyHelper propertyHelper) Set a *new" property.
-
Constructor Details
-
LocalPropertyStack
public LocalPropertyStack()
-
-
Method Details
-
addLocal
Add a local property.- Parameters:
property
- the name of the local property.
-
enterScope
public void enterScope()Enter the local scope. -
exitScope
public void exitScope()Exit the local scope. -
copy
-
evaluate
Evaluate a property.- Parameters:
property
- the property's String "identifier".helper
- the invoking PropertyHelper.- Returns:
- Object value.
-
setNew
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.
-
set
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.
-
getPropertyNames
-