net.sf.antcontrib.math
Class MathTask


java.lang.Object

  extended by org.apache.tools.ant.ProjectComponent

      extended by org.apache.tools.ant.Task

          extended by net.sf.antcontrib.math.MathTask

All Implemented Interfaces:
org.apache.tools.ant.DynamicAttribute, org.apache.tools.ant.DynamicConfigurator, org.apache.tools.ant.DynamicElement

public class MathTask
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.DynamicConfigurator

Task for mathematical operations.

Author:
inger

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
MathTask()
           
 
Method Summary
 java.lang.Object createDynamicElement(java.lang.String name)
           
 Operation createOp()
           
 Operation createOperation()
           
 void execute()
           
 void setDatatype(java.lang.String datatype)
           
 void setDataType(java.lang.String dataType)
           
 void setDynamicAttribute(java.lang.String s, java.lang.String s1)
           
 void setOperand1(java.lang.String operand1)
           
 void setOperand2(java.lang.String operand2)
           
 void setOperation(java.lang.String operation)
           
 void setResult(java.lang.String result)
           
 void setStrict(boolean strict)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathTask


public MathTask()
Method Detail

execute


public void execute()

             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setDynamicAttribute


public void setDynamicAttribute(java.lang.String s,

                                java.lang.String s1)

                         throws org.apache.tools.ant.BuildException
Specified by:
setDynamicAttribute in interface org.apache.tools.ant.DynamicAttribute
Throws:
org.apache.tools.ant.BuildException

createDynamicElement


public java.lang.Object createDynamicElement(java.lang.String name)

                                      throws org.apache.tools.ant.BuildException
Specified by:
createDynamicElement in interface org.apache.tools.ant.DynamicElement
Throws:
org.apache.tools.ant.BuildException

setResult


public void setResult(java.lang.String result)

setDatatype


public void setDatatype(java.lang.String datatype)

setStrict


public void setStrict(boolean strict)

setOperation


public void setOperation(java.lang.String operation)

setDataType


public void setDataType(java.lang.String dataType)

setOperand1


public void setOperand1(java.lang.String operand1)

setOperand2


public void setOperand2(java.lang.String operand2)

createOperation


public Operation createOperation()

createOp


public Operation createOp()