Package railo.runtime.exp

Examples of railo.runtime.exp.UDFCasterException


  private final Object castToAndClone(PageContext pc,FunctionArgument arg,Object value, int index) throws PageException {
    //if(value instanceof Array)print.out(count++);
    if(Decision.isCastableTo(arg.getType(),arg.getTypeAsString(),value))
      return arg.isPassByReference()?value:Duplicator.duplicate(value,false);
    throw new UDFCasterException(this,arg,value,index);
    //REALCAST return Caster.castTo(pc,arg.getType(),arg.getTypeAsString(),value);
  }
View Full Code Here


    throw new UDFCasterException(this,arg,value,index);
    //REALCAST return Caster.castTo(pc,arg.getType(),arg.getTypeAsString(),value);
  }
  private final Object castTo(FunctionArgument arg,Object value, int index) throws PageException {
    if(Decision.isCastableTo(arg.getType(),arg.getTypeAsString(),value)) return value;
    throw new UDFCasterException(this,arg,value,index);
  }
View Full Code Here

         
         
         
          if(properties.returnType==CFTypes.TYPE_ANY) return returnValue;
          else if(Decision.isCastableTo(properties.strReturnType,returnValue,false,false,-1)) return returnValue;
          else throw new UDFCasterException(this,properties.strReturnType,returnValue);
      //REALCAST return Caster.castTo(pageContext,returnType,returnValue,false);
//////////////////////////////////////////
     
    }
    finally {
View Full Code Here

 

  final Object cast(FunctionArgument arg,Object value, int index) throws PageException {
    if(value==null || Decision.isCastableTo(arg.getType(),arg.getTypeAsString(),value))
      return value;
    throw new UDFCasterException(this,arg,value,index);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.exp.UDFCasterException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.