|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.codemesh.terp.ant.TerpAware.Delegate
public static final class TerpAware.Delegate
A utility class that implements the TerpAware interface. Use this class in custom tasks by delegating to an instance of this type from the implementation of all methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware |
|---|
TerpAware.Delegate |
| Constructor Summary | |
|---|---|
TerpAware.Delegate(TerpAware source,
org.apache.tools.ant.Project p)
|
|
| Method Summary | |
|---|---|
TerpContext |
getContext()
Returns the context maintained by this instance. |
java.lang.String |
getIf()
Returns the condition that must be satidifed to execute the implementing task. |
TerpAware |
getSource()
|
java.lang.String |
getUnless()
Returns the condition that must not be satidifed to execute the implementing task. |
boolean |
satisfiesConditions()
Returns true if both conditions are met. |
void |
setContext(TerpContext ctx)
Sets the context maintained by this instance. |
void |
setIf(java.lang.String condition)
Sets a condition that must be satisfied to execute the implementing task. |
void |
setUnless(java.lang.String condition)
Sets a condition that must not be satisfied to execute the implementing task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerpAware.Delegate(TerpAware source,
org.apache.tools.ant.Project p)
| Method Detail |
|---|
public TerpAware getSource()
public TerpContext getContext()
TerpContextHolder
getContext in interface TerpContextHolderpublic void setContext(TerpContext ctx)
TerpContextHolder
setContext in interface TerpContextHolderctx - the execution context.public java.lang.String getIf()
TerpAware
getIf in interface TerpAwarepublic void setIf(java.lang.String condition)
TerpAware
setIf in interface TerpAwarecondition - a terp expression that must evaluate to a boolean value.public java.lang.String getUnless()
TerpAware
getUnless in interface TerpAwarepublic void setUnless(java.lang.String condition)
TerpAware
setUnless in interface TerpAwarecondition - a terp expression that must evaluate to a boolean value.public boolean satisfiesConditions()
TerpAware
satisfiesConditions in interface TerpAware
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||