com.wewebu.expression.language
Class OwExprEqualityOperator

java.lang.Object
  extended by com.wewebu.expression.language.OwExprOperator
      extended by com.wewebu.expression.language.OwExprBinaryOperator
          extended by com.wewebu.expression.language.OwExprEqualityOperator

public class OwExprEqualityOperator
extends OwExprBinaryOperator

OwExprEqualityOperator.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
static OwExprEqualityOperator EQUAL_INSTANCE
           
static OwExprEqualityOperator NOTEQUAL_INSTANCE
           
 
Method Summary
 OwExprValue evaluate(OwExprBooleanValue v1_p, OwExprBooleanValue v2_p)
          BOOLEAN operator BOOLEAN operation evaluation
 OwExprValue evaluate(OwExprBooleanValue v1_p, OwExprNullValue v2_p)
          BOOLEAN operator NULL operation evaluation
 OwExprValue evaluate(OwExprBooleanValue v1_p, OwExprStringValue v2_p)
          BOOLEAN operator STRING operation evaluation
 OwExprValue evaluate(OwExprDateValue v1_p, OwExprDateValue v2_p)
          DATE operator DATE operation evaluation
 OwExprValue evaluate(OwExprDateValue v1_p, OwExprNullValue v2_p)
          DATE operator NULL operation evaluation
 OwExprValue evaluate(OwExprDateValue v1_p, OwExprStringValue v2_p)
          DATE operator STRING operation evaluation
 OwExprValue evaluate(OwExprNullValue v1_p, OwExprValue v2_p)
          Stage 2 evaluation by visiting entry point with concrete left operand type.
 OwExprValue evaluate(OwExprNumericValue v1_p, OwExprNullValue v2_p)
          NUMERIC operator NULL operation evaluation
 OwExprValue evaluate(OwExprNumericValue v1_p, OwExprNumericValue v2_p)
          NUMERIC operator NUMERIC operation evaluation
 OwExprValue evaluate(OwExprNumericValue v1_p, OwExprStringValue v2_p)
          NUMERIC operator STRING operation evaluation
 OwExprValue evaluate(OwExprScopeValue v1_p, OwExprNullValue v2_p)
          SCOPE operator NULL operation evaluation
 OwExprValue evaluate(OwExprScopeValue v1_p, OwExprScopeValue v2_p)
          SCOPE operator SCOPE operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprBooleanValue v2_p)
          STRING operator BOOLEAN operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprDateValue v2_p)
          STRING operator DATE operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprNullValue v2_p)
          STRING operator NULL operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprNumericValue v2_p)
          STRING operator NUMERIC operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprStringValue v2_p)
          STRING operator STRING operation evaluation
 OwExprValue evaluate(OwExprStringValue v1_p, OwExprTimeValue v2_p)
          STRING operator TIME operation evaluation
 OwExprValue evaluate(OwExprTimeValue v1_p, OwExprNullValue v2_p)
          TIME operator NULL operation evaluation
 OwExprValue evaluate(OwExprTimeValue v1_p, OwExprStringValue v2_p)
          TIME operator STRING operation evaluation
 OwExprValue evaluate(OwExprTimeValue v1_p, OwExprTimeValue v2_p)
          TIME operator TIME operation evaluation
 
Methods inherited from class com.wewebu.expression.language.OwExprBinaryOperator
binaryEvaluation, computeExpressionType, computeType, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getRegressingTypes1, getRegressingTypes2
 
Methods inherited from class com.wewebu.expression.language.OwExprOperator
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL_INSTANCE

public static final OwExprEqualityOperator EQUAL_INSTANCE

NOTEQUAL_INSTANCE

public static final OwExprEqualityOperator NOTEQUAL_INSTANCE
Method Detail

evaluate

public OwExprValue evaluate(OwExprNumericValue v1_p,
                            OwExprNumericValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
NUMERIC operator NUMERIC operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprNumericValue v1_p,
                            OwExprStringValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
NUMERIC operator STRING operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprNumericValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator NUMERIC operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprStringValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator STRING operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprNullValue v1_p,
                            OwExprValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
Stage 2 evaluation by visiting entry point with concrete left operand type.

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprTimeValue v1_p,
                            OwExprTimeValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
TIME operator TIME operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprBooleanValue v1_p,
                            OwExprBooleanValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
BOOLEAN operator BOOLEAN operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprDateValue v1_p,
                            OwExprDateValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
DATE operator DATE operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprTimeValue v1_p,
                            OwExprStringValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
TIME operator STRING operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprTimeValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator TIME operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprDateValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator DATE operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprDateValue v1_p,
                            OwExprStringValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
DATE operator STRING operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprBooleanValue v1_p,
                            OwExprStringValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
BOOLEAN operator STRING operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprBooleanValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator BOOLEAN operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprStringValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
STRING operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprNumericValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
NUMERIC operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprDateValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
DATE operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprBooleanValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
BOOLEAN operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprTimeValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
TIME operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprScopeValue v1_p,
                            OwExprNullValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
SCOPE operator NULL operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)

evaluate

public OwExprValue evaluate(OwExprScopeValue v1_p,
                            OwExprScopeValue v2_p)
                     throws OwExprEvaluationException
Description copied from class: OwExprBinaryOperator
SCOPE operator SCOPE operation evaluation

Overrides:
evaluate in class OwExprBinaryOperator
Returns:
the resulted value as OwExprValue according to the conversion rules
Throws:
OwExprEvaluationException - if the operation fails for any reason (unsupported operand types , incompatible operands, unimplemented operation or operation failure at evaluation time)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.