|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.expression.language.OwExprBinaryConversionTable
public class OwExprBinaryConversionTable
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 Summary | |
---|---|
OwExprBinaryConversionTable()
Constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwExprBinaryConversionTable()
m_conversionTable
internal table is filled with OwExprType.NOTYPE
Method Detail |
---|
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 type
RuntimeException
- if a conversion rule for the specified operands was already added
IllegalArgumentException
- 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 type
RuntimeException
- if a conversion rule for the specified operands was already added
IllegalArgumentException
- 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 type
RuntimeException
- if a conversion rule for the specified operands was already added
IllegalArgumentException
- if the converted type is OwExprType.NOTYPE
public final OwExprType convert(OwExprType type1_p, OwExprType type2_p)
type1_p
- type2_p
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |