org.peaseplate.internal.lang.command
Class PositiveCommand

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.PositiveCommand
All Implemented Interfaces:
ICommand

public class PositiveCommand
extends AbstractUnaryCommand


Constructor Summary
PositiveCommand(TemplateLocator locator, int line, int column, ICommand command)
           
 
Method Summary
 java.lang.Object call(BuildContext context)
           
 java.lang.String getSign()
           
protected  java.lang.Object positiveOf(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

PositiveCommand

public PositiveCommand(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)

positiveOf

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


Copyright © 2008. All Rights Reserved.