|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ise.antelope.tasks.MathTask
public class MathTask
Provides basic math functions. Simple calculations can be done via attributes only, more complex formulas can be set up via nested Ops.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
MathTask()
|
Method Summary | |
---|---|
void |
addConfiguredOp(Op op)
Add a nested operation. |
void |
execute()
|
void |
setDatatype(java.lang.String type)
Sets the datatype of this calculation. |
void |
setOperand1(java.lang.String op)
Set an operand as an attribute. |
void |
setOperand2(java.lang.String op)
Set an operand as an attribute. |
void |
setOperation(java.lang.String op)
Set an operation as an attribute. |
void |
setResult(java.lang.String name)
Sets the name of the property to store the result in. |
void |
setStrict(boolean b)
Use the StrictMath library. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MathTask()
Method Detail |
---|
public void setResult(java.lang.String name)
name
- the name of a property to set for a result.public void setDatatype(java.lang.String type)
public void setOperand1(java.lang.String op) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setOperand2(java.lang.String op) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public void setOperation(java.lang.String op)
op
- any operation allowed by Op.public void addConfiguredOp(Op op)
op
- the operation to add.public void setStrict(boolean b)
public void execute()
execute
in class org.apache.tools.ant.Task
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |