org.peaseplate.internal.lang.command
Class NegativeCommand

java.lang.Object
  extended by org.peaseplate.internal.lang.command.AbstractCommand
      extended by org.peaseplate.internal.lang.command.AbstractSingleParameterCommand
          extended by org.peaseplate.internal.lang.command.AbstractUnaryCommand
              extended by org.peaseplate.internal.lang.command.NegativeCommand
All Implemented Interfaces:
ICommand

public class NegativeCommand
extends AbstractUnaryCommand


Constructor Summary
NegativeCommand(TemplateLocator locator, int line, int column, ICommand command)
           
 
Method Summary
 java.lang.Object call(BuildContext context)
           
 java.lang.String getSign()
           
protected  java.lang.Object negativeOf(java.lang.Object value)
           
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractUnaryCommand
toString
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractSingleParameterCommand
callCommand, getCommand
 
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

NegativeCommand

public NegativeCommand(TemplateLocator locator,
                       int line,
                       int column,
                       ICommand command)
Method Detail

getSign

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

call

public java.lang.Object call(BuildContext context)
                      throws TemplateRuntimeException
Throws:
TemplateRuntimeException
See Also:
ICommand.call(BuildContext)

negativeOf

protected java.lang.Object negativeOf(java.lang.Object value)
                               throws TemplateRuntimeException
Throws:
TemplateRuntimeException


Copyright © 2008. All Rights Reserved.