org.peaseplate.internal.lang.command
Class EqualsCommand

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.AbstractEqualityCommand
              extended by org.peaseplate.internal.lang.command.EqualsCommand
All Implemented Interfaces:
ICommand

public class EqualsCommand
extends AbstractEqualityCommand


Constructor Summary
EqualsCommand(TemplateLocator locator, int line, int column, ICommand leftCommand, ICommand rightCommand)
           
 
Method Summary
<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()
           
 java.lang.String getSign()
           
 
Methods inherited from class org.peaseplate.internal.lang.command.AbstractEqualityCommand
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

EqualsCommand

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

getSign

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

evaluateNull

public java.lang.Boolean evaluateNull()
                               throws TemplateRuntimeException
Overrides:
evaluateNull in class AbstractEqualityCommand
Throws:
TemplateRuntimeException
See Also:
AbstractEqualityCommand.evaluateNull()

evaluateComparable

public <TYPE> java.lang.Boolean evaluateComparable(java.lang.Comparable<TYPE> left,
                                                   java.lang.Comparable<TYPE> right)
                                     throws TemplateRuntimeException
Overrides:
evaluateComparable in class AbstractEqualityCommand
Throws:
TemplateRuntimeException
See Also:
AbstractEqualityCommand.evaluateComparable(java.lang.Comparable, java.lang.Comparable)

evaluateNonComparable

public java.lang.Boolean evaluateNonComparable(java.lang.Object left,
                                               java.lang.Object right)
                                        throws TemplateRuntimeException
Overrides:
evaluateNonComparable in class AbstractEqualityCommand
Throws:
TemplateRuntimeException
See Also:
AbstractEqualityCommand.evaluateNonComparable(java.lang.Object, java.lang.Object)


Copyright © 2008. All Rights Reserved.