com.wewebu.expression.language
Class OwExprUnaryConversionTable

java.lang.Object
  extended by com.wewebu.expression.language.OwExprUnaryConversionTable

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 Summary
OwExprUnaryConversionTable()
          Constructor
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwExprUnaryConversionTable

public OwExprUnaryConversionTable()
Constructor

Method Detail

getConversionsType

public Set getConversionsType(Set types_p)
Parameters:
types_p - a Set of OwExprType
Returns:
a Set of all possible resulting types that can result when this operator would be applied to given types

getConversionsType

public Set getConversionsType(OwExprType type_p)
Parameters:
type_p - an OwExprType
Returns:
a Set of all possible resulting types that can result when this operator would be applied to given type

add

public final void add(OwExprType[] types_p,
                      OwExprType conversion_p)
Adds a multiple operand types conversion rule

Parameters:
types_p - operand types
conversion_p - type that results if this operator is applied to the any of the given types

add

public final void add(OwExprType type_p,
                      OwExprType conversion_p)
Adds conversion rule

Parameters:
type_p - operand type
conversion_p - ype that results if this operator is applied to the given type

convert

public final OwExprType convert(OwExprType type_p)
Parameters:
type_p -
Returns:
the type that results from applying this operator to a value of a given type


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.