org.peaseplate.internal.lang.command
Class AbstractCompareCommand

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.AbstractCompareCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
GreaterEqualCommand, GreaterThanCommand, LessEqualCommand, LessThanCommand

public abstract class AbstractCompareCommand
extends AbstractDoubleParameterCommand


Constructor Summary
AbstractCompareCommand(TemplateLocator locator, int line, int column, ICommand leftCommand, ICommand rightCommand)
           
 
Method Summary
 java.lang.Object call(BuildContext context)
           
<TYPE> java.lang.Boolean
evaluateComparable(java.lang.Comparable<TYPE> left, java.lang.Comparable<TYPE> right)
           
 java.lang.Boolean evaluateNonComparable(java.lang.Object left, java.lang.Object right)
           
 java.lang.Boolean evaluateNull()
           
abstract  java.lang.String getSign()
           
 java.lang.String 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

AbstractCompareCommand

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

getSign

public abstract java.lang.String getSign()

call

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

evaluateNull

public java.lang.Boolean evaluateNull()
                               throws TemplateRuntimeException
Throws:
TemplateRuntimeException

evaluateComparable

public <TYPE> java.lang.Boolean evaluateComparable(java.lang.Comparable<TYPE> left,
                                                   java.lang.Comparable<TYPE> right)
                                     throws TemplateRuntimeException
Throws:
TemplateRuntimeException

evaluateNonComparable

public java.lang.Boolean evaluateNonComparable(java.lang.Object left,
                                               java.lang.Object right)
                                        throws TemplateRuntimeException
Throws:
TemplateRuntimeException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2008. All Rights Reserved.