Package railo.intergral.fusiondebug.server.type.simple

Examples of railo.intergral.fusiondebug.server.type.simple.FDSimpleVariable


    List lstColumns=new ArrayList();
    String type;
    for(int i=0;i<strColumns.length;i++){
      type=qry.getColumn(strColumns[i],null).getTypeAsString();
      //else type="";
      lstColumns.add(new FDSimpleVariable(frame,strColumns[i],type,null));
    }
    children.add(new FDSimpleVariable(frame,"Columns",Caster.toString(strColumns.length),lstColumns));
   
    // rows
    int rowcount=qry.getRowCount();
    List lstRows=new ArrayList();//,values;
    fill(frame,qry,lstRows,1,rowcount-1,strColumns);
    children.add(new FDSimpleVariable(frame,"Rows",Caster.toString(rowcount),lstRows));
  }
View Full Code Here


    if(len>interval){
      int max;
      for(int i=start;i<to;i+=interval)  {
        max=(i+interval)<to?(interval-1):to-i;
        ArrayList group=new ArrayList();
        lstRows.add(new FDSimpleVariable(frame,"Rows","["+i+"-"+((i+max))+"]",group));
        fill(frame, qry, group, i, max, strColumns);
      }
    }
    else {
      ArrayList values;
      for(int r=start;r<=to;r++){
        values=new ArrayList();
        for(int c=0;c<strColumns.length;c++){
          values.add(new FDVariable(frame,strColumns[c],new FDQueryNode(frame,qry,r,strColumns[c])));
        }
        lstRows.add(new FDSimpleVariable(frame,"Row","["+r+"]",values));
      }
    }
  }
View Full Code Here

   
    Class clazz = value.getClass();
   
   
    // super
    children.add(new FDSimpleVariable(frame,"Extends",ClassUtil.getName(clazz.getSuperclass()),null));
   
    // interfaces
    Class[] faces = clazz.getInterfaces();
    if(faces.length>0){
      ArrayList list = new ArrayList();
     
      children.add(new FDSimpleVariable(frame,"Interfaces","",list));
      for(int i=0;i<faces.length;i++){
        list.add(new FDSimpleVariable(frame,"["+(i+1)+"]",ClassUtil.getName(faces[i]),null));
      }
    }
    ArrayList el,list;
   
    // fields
    Field[] flds = clazz.getFields();
    if(flds.length>0){
      Field fld;
      list = new ArrayList();
      children.add(new FDSimpleVariable(frame,"Fields","",list));
      for(int i=0;i<flds.length;i++){
        fld=flds[i];
        el = new ArrayList();
        list.add(new FDSimpleVariable(frame,fld.getName(),"",el));
        el.add(new FDSimpleVariable(frame,"Type",ClassUtil.getName(fld.getType()),null));
        el.add(new FDSimpleVariable(frame,"Modifier",Modifier.toString(fld.getModifiers()),null));
      }
    }
    // methods
    Method[] mths = clazz.getMethods();
    if(mths.length>0){
      Method mth;
      list = new ArrayList();
      children.add(new FDSimpleVariable(frame,"Methods","",list));
      for(int i=0;i<mths.length;i++){
        mth=mths[i];
        el = new ArrayList();
        list.add(new FDSimpleVariable(frame,mth.getName(),"",el));
       
        el.add(new FDSimpleVariable(frame,"Modifier",Modifier.toString(mth.getModifiers()),null));
       
        // exceptions
        Class[] clsTypes = mth.getExceptionTypes();
        if(clsTypes.length>0){
          ArrayList exps = new ArrayList();
          el.add(new FDSimpleVariable(frame,"Exceptions",Caster.toString(clsTypes.length),exps));
          for(int y=0;y<clsTypes.length;y++){
            exps.add(new FDSimpleVariable(frame,"["+(y+1)+"]",ClassUtil.getName(clsTypes[y]),null));
          }
        }
       
        // params
        Class[] clsParams = mth.getParameterTypes();
        if(clsParams.length>0){
          ArrayList params = new ArrayList();
          el.add(new FDSimpleVariable(frame,"Parameters",Caster.toString(clsParams.length),params));
          for(int y=0;y<clsParams.length;y++){
            params.add(new FDSimpleVariable(frame,"["+(y+1)+"]",ClassUtil.getName(clsParams[y]),null));
          }
        }
       
        // return
        el.add(new FDSimpleVariable(frame,"Return",ClassUtil.getName(mth.getReturnType()),null));
      }
    }
  }
View Full Code Here

    this.name=name;
    this.udf=udf;
   
    // meta
    List<FDSimpleVariable> list=new ArrayList<FDSimpleVariable>();
    children.add(new FDSimpleVariable(frame,"Meta Data","",list));
    list.add(new FDSimpleVariable(frame,"Function Name",udf.getFunctionName(),null));
    if(!StringUtil.isEmpty(udf.getDisplayName()))
      list.add(new FDSimpleVariable(frame,"Display Name",udf.getDisplayName(),null));
    if(!StringUtil.isEmpty(udf.getDescription()))
      list.add(new FDSimpleVariable(frame,"Description",udf.getDescription(),null));
    if(!StringUtil.isEmpty(udf.getHint()))
      list.add(new FDSimpleVariable(frame,"Hint",udf.getHint(),null));
    list.add(new FDSimpleVariable(frame,"Return Type",udf.getReturnTypeAsString(),null));
    list.add(new FDSimpleVariable(frame,"Return Format",UDFUtil.toReturnFormat(udf.getReturnFormat(),"plain"),null));
    list.add(new FDSimpleVariable(frame,"Source",Caster.toString(udf.getPageSource().getDisplayPath()),null));
    list.add(new FDSimpleVariable(frame,"Secure Json",Caster.toString(udf.getSecureJson(),""),null));
    list.add(new FDSimpleVariable(frame,"Verify Client",Caster.toString(udf.getVerifyClient(),""),null));
   
    // arguments
    list=new ArrayList();
    List el;
    children.add(new FDSimpleVariable(frame,"Arguments","",list));
    FunctionArgument[] args = udf.getFunctionArguments();
    for(int i=0;i<args.length;i++){
      el=new ArrayList();
      list.add(new FDSimpleVariable(frame,"["+(i+1)+"]","",el));
      el.add(new FDSimpleVariable(frame,"Name",args[i].getName().getString(),null));
      el.add(new FDSimpleVariable(frame,"Type",args[i].getTypeAsString(),null));
      el.add(new FDSimpleVariable(frame,"Required",Caster.toString(args[i].isRequired()),null));
     
      if(!StringUtil.isEmpty(args[i].getDisplayName()))
        el.add(new FDSimpleVariable(frame,"Display Name",args[i].getDisplayName(),null));
      if(!StringUtil.isEmpty(args[i].getHint()))
        el.add(new FDSimpleVariable(frame,"Hint",args[i].getHint(),null));
    }
   
    // return
    children.add(new FDSimpleVariable(frame,"return",udf.getReturnTypeAsString(),null))
  }
View Full Code Here

TOP

Related Classes of railo.intergral.fusiondebug.server.type.simple.FDSimpleVariable

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.