|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.antcontrib.property.Op
Represents a mathematical operation.
Developed for use with Antelope, migrated to ant-contrib Oct 2003.
Constructor Summary | |
Op()
|
Method Summary | |
void |
addConfiguredOp(Op op)
Add a nested operation. |
void |
addNum(Num num)
Add a number to this operation. |
Num |
calculate()
Perform this operation. |
void |
setDatatype(java.lang.String p)
Sets the datatype of this calculation. |
void |
setOp(java.lang.String op)
Set the operation. |
void |
setStrict(boolean b)
Use the StrictMath library. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Op()
Method Detail |
public void setOp(java.lang.String op)
public void addNum(Num num)
num
- a number to use in this operationpublic void setDatatype(java.lang.String p)
public void addConfiguredOp(Op op)
public void setStrict(boolean b)
public Num calculate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |