org.peaseplate.internal.lang.command
Class AdditionCommand

java.lang.Object
  extended by org.peaseplate.internal.lang.command.AbstractCommand
      extended by org.peaseplate.internal.lang.command.AbstractDoubleParameterCommand
          extended by org.peaseplate.internal.lang.command.AbstractNumericCommand
              extended by org.peaseplate.internal.lang.command.AdditionCommand
All Implemented Interfaces:
ICommand

public class AdditionCommand
extends AbstractNumericCommand


Constructor Summary
AdditionCommand(TemplateLocator locator, int line, int column, ICommand leftCommand, ICommand rightCommand)
           
 
Method Summary
 java.math.BigDecimal calculate(java.math.BigDecimal left, java.math.BigDecimal right)
           
 java.math.BigInteger calculate(java.math.BigInteger left, java.math.BigInteger right)
           
 java.lang.Byte calculate(java.lang.Byte left, java.lang.Byte right)
           
 java.lang.Character calculate(java.lang.Character left, java.lang.Character right)
           
 java.lang.Double calculate(java.lang.Double left, java.lang.Double right)
           
 java.lang.Float calculate(java.lang.Float left, java.lang.Float right)
           
 java.lang.Integer calculate(java.lang.Integer left, java.lang.Integer right)
           
 java.lang.Long calculate(java.lang.Long left, java.lang.Long right)
           
 java.lang.Short calculate(java.lang.Short left, java.lang.Short right)
           
 java.lang.StringBuffer calculate(java.lang.StringBuffer left, java.lang.StringBuffer right)
           
 java.lang.StringBuilder calculate(java.lang.StringBuilder left, java.lang.StringBuilder right)
           
 java.lang.String calculate(java.lang.String left, java.lang.String right)
           
 java.lang.String getSign()
           
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractNumericCommand
calculate, call, toString
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractDoubleParameterCommand
callLeftCommand, callRightCommand, getLeftCommand, getRightCommand
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractCommand
getColumn, getLine, getLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdditionCommand

public AdditionCommand(TemplateLocator locator,
                       int line,
                       int column,
                       ICommand leftCommand,
                       ICommand rightCommand)
Method Detail

getSign

public java.lang.String getSign()
Specified by:
getSign in class AbstractNumericCommand
See Also:
AbstractNumericCommand.getSign()

calculate

public java.lang.Byte calculate(java.lang.Byte left,
                                java.lang.Byte right)
                         throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Byte, java.lang.Byte)

calculate

public java.lang.Short calculate(java.lang.Short left,
                                 java.lang.Short right)
                          throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Short, java.lang.Short)

calculate

public java.lang.Character calculate(java.lang.Character left,
                                     java.lang.Character right)
                              throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Character, java.lang.Character)

calculate

public java.lang.Integer calculate(java.lang.Integer left,
                                   java.lang.Integer right)
                            throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Integer, java.lang.Integer)

calculate

public java.lang.Long calculate(java.lang.Long left,
                                java.lang.Long right)
                         throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Long, java.lang.Long)

calculate

public java.lang.Float calculate(java.lang.Float left,
                                 java.lang.Float right)
                          throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Float, java.lang.Float)

calculate

public java.lang.Double calculate(java.lang.Double left,
                                  java.lang.Double right)
                           throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.Double, java.lang.Double)

calculate

public java.math.BigDecimal calculate(java.math.BigDecimal left,
                                      java.math.BigDecimal right)
                               throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.math.BigDecimal, java.math.BigDecimal)

calculate

public java.math.BigInteger calculate(java.math.BigInteger left,
                                      java.math.BigInteger right)
                               throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.math.BigInteger, java.math.BigInteger)

calculate

public java.lang.String calculate(java.lang.String left,
                                  java.lang.String right)
                           throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.String, java.lang.String)

calculate

public java.lang.StringBuffer calculate(java.lang.StringBuffer left,
                                        java.lang.StringBuffer right)
                                 throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.StringBuffer, java.lang.StringBuffer)

calculate

public java.lang.StringBuilder calculate(java.lang.StringBuilder left,
                                         java.lang.StringBuilder right)
                                  throws TemplateRuntimeException
Overrides:
calculate in class AbstractNumericCommand
Throws:
TemplateRuntimeException
See Also:
AbstractNumericCommand.calculate(java.lang.StringBuilder, java.lang.StringBuilder)


Copyright © 2008. All Rights Reserved.