public class OwExprBinaryConversionTable extends Object
Binary conversion tables are bidimensional-array like structures holding information on how
a binary operator should perform type conversions.
Column and row type indexes can be matched against left and right operands type indexes and
the resulted conversion type is the element found at the matched indexes in the table.
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 |
---|
OwExprBinaryConversionTable()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(OwExprType[] types1_p,
OwExprType type2_p,
OwExprType conversion_p)
Adds a conversion rule
|
void |
add(OwExprType type1_p,
OwExprType[] types2_p,
OwExprType conversion_p)
Adds a conversion rule
|
void |
add(OwExprType type1_p,
OwExprType type2_p,
OwExprType conversion_p)
Adds a conversion rule
|
OwExprType |
convert(OwExprType type1_p,
OwExprType type2_p) |
Set |
getConversionsType1(OwExprType type_p) |
Set |
getConversionsType1(Set types_p) |
Set |
getConversionsType2(OwExprType type_p) |
Set |
getConversionsType2(Set types_p) |
public OwExprBinaryConversionTable()
m_conversionTable
internal table is filled with OwExprType.NOTYPE
public Set getConversionsType1(Set types_p)
types_p
- public Set getConversionsType2(Set types_p)
types_p
- public Set getConversionsType1(OwExprType type_p)
type_p
- public Set getConversionsType2(OwExprType type_p)
type_p
- public final void add(OwExprType type1_p, OwExprType[] types2_p, OwExprType conversion_p)
type1_p
- left side operand typetypes2_p
- right side operand typesconversion_p
- resulted typeRuntimeException
- if a conversion rule for the specified operands was already addedIllegalArgumentException
- if the converted type is OwExprType.NOTYPE
public final void add(OwExprType[] types1_p, OwExprType type2_p, OwExprType conversion_p)
types1_p
- left side operand typestype2_p
- right side operand typeconversion_p
- resulted typeRuntimeException
- if a conversion rule for the specified operands was already addedIllegalArgumentException
- if the converted type is OwExprType.NOTYPE
public final void add(OwExprType type1_p, OwExprType type2_p, OwExprType conversion_p)
type1_p
- left side operand typestype2_p
- right side operand typeconversion_p
- resulted typeRuntimeException
- if a conversion rule for the specified operands was already addedIllegalArgumentException
- if the converted type is OwExprType.NOTYPE
public final OwExprType convert(OwExprType type1_p, OwExprType type2_p)
type1_p
- type2_p
- Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.