public class OwExprUnaryConversionTable extends Object
Unary conversion tables are array like structures holding information on how
an unary operator should perform type conversions.
Type indexes can be matched against the operand type index and
the resulted conversion type is the array element found at the matched index.
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 |
---|
OwExprUnaryConversionTable()
|
Modifier and Type | Method and Description |
---|---|
void |
add(OwExprType[] types_p,
OwExprType conversion_p)
Adds a multiple operand types conversion rule
|
void |
add(OwExprType type_p,
OwExprType conversion_p)
Adds conversion rule
|
OwExprType |
convert(OwExprType type_p) |
Set |
getConversionsType(OwExprType type_p) |
Set |
getConversionsType(Set types_p) |
public Set getConversionsType(Set types_p)
types_p
- a Set
of OwExprType
Set
of all possible resulting types that can result when this operator would be applied to given typespublic Set getConversionsType(OwExprType type_p)
type_p
- an OwExprType
Set
of all possible resulting types that can result when this operator would be applied to given typepublic final void add(OwExprType[] types_p, OwExprType conversion_p)
types_p
- operand typesconversion_p
- type that results if this operator is applied to the any of the given typespublic final void add(OwExprType type_p, OwExprType conversion_p)
type_p
- operand typeconversion_p
- ype that results if this operator is applied to the given typepublic final OwExprType convert(OwExprType type_p)
type_p
- Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.