Package railo.runtime.type

Examples of railo.runtime.type.FunctionValue


    Array[] columns=new Array[arr.length];
    int count=0;
   
    for(int i=0;i<arr.length;i++) {
      if(arr[i] instanceof FunctionValue) {
        FunctionValue vf = (FunctionValue)arr[i];
        if(vf.getValue() instanceof Array) {
          names[count]=vf.getNameAsString();
          columns[count]=(Array) vf.getValue();
          count++;
        }
        else throw new DatabaseException("invalid argument for function query, only array as value are allowed","example: query(column1:array(1,2,3))",null,null);
      }
      else throw new DatabaseException("invalid argument for function query, only named argument are allowed","example: query(column1:array(1,2,3))",null,null);
View Full Code Here


   
    Struct namedArguments=null;
    Object[] arguments=null;
    if(objArr.length<=3)arguments=ArrayUtil.OBJECT_EMPTY;
    else if(objArr[3] instanceof FunctionValue){
      FunctionValue fv;
      namedArguments=new StructImpl();
      if(caller)namedArguments.setEL(KeyConstants._caller, Duplicator.duplicate(pc.undefinedScope(),false));
      for(int i=3;i<objArr.length;i++){
        fv=toFunctionValue(name,objArr[i]);
        namedArguments.set(fv.getName(), fv.getValue());
      }
    }
    else {
      int offset=(caller?2:3);
      arguments=new Object[objArr.length-offset];
View Full Code Here

TOP

Related Classes of railo.runtime.type.FunctionValue

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.