public abstract class OwExprUnaryOperator extends OwExprOperator
Unary operator class (egg. !boolPropertz , -232.2 ).
A single operand operation implementation.
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
| Constructor and Description |
|---|
OwExprUnaryOperator(String image_p,
OwExprUnaryConversionTable conversionTable_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OwExprUnaryExpressionType |
computeExpressionType(OwExprExpression operand_p)
Computes the resulted expression type based on given operand and regresses
sub-expression types accordingly
|
OwExprType |
computeType(OwExprType type_p)
Type computation method.
|
OwExprValue |
evaluate(OwExprBooleanValue booleanValue_p)
Evaluation by visiting with concrete single operand type.
|
OwExprValue |
evaluate(OwExprNumericValue numericValue_p)
Evaluation by visiting with concrete single operand type.
|
OwExprValue |
evaluate(OwExprScope scope_p,
OwExprExpression expression_p)
Unary evaluation method to be called at evaluation time.
|
Set |
getRegressingTypes(Set regressedTypes_p)
Returns a set of compatible single operand types (
OwExprTypes ) for a set of given operation result
types set. |
toStringpublic OwExprUnaryOperator(String image_p, OwExprUnaryConversionTable conversionTable_p)
image_p - literal image (egg. "!" , "-")conversionTable_p - conversion table to usepublic final OwExprValue evaluate(OwExprScope scope_p, OwExprExpression expression_p) throws OwExprEvaluationException
scope_p - the scope this operation is evaluated onexpression_p - single operandOwExprValueOwExprEvaluationException - if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue evaluate(OwExprBooleanValue booleanValue_p) throws OwExprEvaluationException
booleanValue_p - OwExprValueOwExprEvaluationException - if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public OwExprValue evaluate(OwExprNumericValue numericValue_p) throws OwExprEvaluationException
numericValue_p - OwExprValueOwExprEvaluationException - if the operation fails for any reason (unsupported operand types ,
incompatible operands, unimplemented operation or operation failure at evaluation time)public final OwExprType computeType(OwExprType type_p) throws OwExprTypeMissmatchException
m_conversionTabletype_p - single operand typeOwExprTypeMissmatchExceptionpublic final Set getRegressingTypes(Set regressedTypes_p)
OwExprTypes ) for a set of given operation result
types set.
The returned type set is a subset of all left side operand types that can result invalid types
(different from OwExprType.NOTYPE ) for this operator.regressedTypes_p - the operation result types setOwExprTypespublic final OwExprUnaryExpressionType computeExpressionType(OwExprExpression operand_p) throws OwExprTypeMissmatchException
operand_p - single OwExprExpression operandOwExprUnaryExpressionTypeOwExprTypeMissmatchException - if the operator evaluation cannot not be performed due to type incompatibilityCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.