unity.functions
Class F_Cast

java.lang.Object
  extended by unity.functions.Expression
      extended by unity.functions.Function
          extended by unity.functions.F_Cast

public class F_Cast
extends Function


Constructor Summary
F_Cast(Expression exp, int curType, int newType)
           
F_Cast(Expression exp, int curType, java.lang.String newTypeName)
           
 
Method Summary
static java.lang.Object changeType(java.lang.Object value, int currentType, int returnType)
           
 java.lang.Object evaluate(Tuple t)
           
static int findType(java.lang.Object value)
           
static java.lang.String getFunctionName()
           
static int[] getParamListTypes()
           
 int getReturnType()
           
 int getTypeBySQLName(java.lang.String SQLName)
           
 java.lang.String toString(Relation relation)
           
 
Methods inherited from class unity.functions.Function
createHashName, findFunction, initializeFunctions, paramListToString, validateTypes, validateTypes
 
Methods inherited from class unity.functions.Expression
computeType, getAttributeIndexReferences, getChild, getExprLocs, getNumChildren, getParent, hasChildren, setParent, setReturnType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F_Cast

public F_Cast(Expression exp,
              int curType,
              java.lang.String newTypeName)

F_Cast

public F_Cast(Expression exp,
              int curType,
              int newType)
Method Detail

evaluate

public java.lang.Object evaluate(Tuple t)
Specified by:
evaluate in class Expression

changeType

public static java.lang.Object changeType(java.lang.Object value,
                                          int currentType,
                                          int returnType)

findType

public static int findType(java.lang.Object value)

getReturnType

public int getReturnType()
Overrides:
getReturnType in class Expression

getParamListTypes

public static int[] getParamListTypes()

getFunctionName

public static java.lang.String getFunctionName()

toString

public java.lang.String toString(Relation relation)
Overrides:
toString in class Expression

getTypeBySQLName

public int getTypeBySQLName(java.lang.String SQLName)