|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.expression.language.OwExprOperator
com.wewebu.expression.language.OwExprUnaryOperator
public abstract class OwExprUnaryOperator
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 Summary | |
|---|---|
OwExprUnaryOperator(String image_p,
OwExprUnaryConversionTable conversionTable_p)
Constructor |
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Constructor Detail |
|---|
public OwExprUnaryOperator(String image_p,
OwExprUnaryConversionTable conversionTable_p)
image_p - literal image (egg. "!" , "-")conversionTable_p - conversion table to use| Method Detail |
|---|
public final OwExprValue evaluate(OwExprScope scope_p,
OwExprExpression expression_p)
throws OwExprEvaluationException
scope_p - the scope this operation is evaluated onexpression_p - single operand
OwExprValue
OwExprEvaluationException - 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 -
OwExprValue
OwExprEvaluationException - 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 -
OwExprValue
OwExprEvaluationException - 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_conversionTable
type_p - single operand type
OwExprTypeMissmatchExceptionpublic 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 set
OwExprTypes
public final OwExprUnaryExpressionType computeExpressionType(OwExprExpression operand_p)
throws OwExprTypeMissmatchException
operand_p - single OwExprExpression operand
OwExprUnaryExpressionType
OwExprTypeMissmatchException - if the operator evaluation cannot not be performed due to type incompatibility
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||