Package railo.runtime.type

Examples of railo.runtime.type.FunctionArgument


    StringBuffer _interface=new StringBuffer();
   
    Object member;
        UDF udf;
        FunctionArgument[] args;
        FunctionArgument arg;
        for(int y=0;y<keys.length;y++) {
          member = cw.get(keys[y],null);
          if(member instanceof UDF) {
            udf=(UDF) member;
            //print.out(udf.);
            _interface.append(udf.getAccess());
            _interface.append(udf.getOutput());
            _interface.append(udf.getFunctionName());
            _interface.append(udf.getReturnTypeAsString());
            args = udf.getFunctionArguments();
            for(int i=0;i<args.length;i++){
              arg=args[i];
                _interface.append(arg.isRequired());
                _interface.append(arg.getName());
                _interface.append(arg.getTypeAsString());
            }
          }
        }
    return  MD5.getDigestAsString(_interface.toString().toLowerCase());
  }
View Full Code Here


        FunctionArgument[] fas = udf.getFunctionArguments();
        Array _args=new ArrayImpl();
    sct.set(KeyConstants._arguments,_args);
        int min=0,max=0;
    for(int i=0;i<fas.length;i++) {
          FunctionArgument fa=fas[i];
          Struct meta = fa.getMetaData();
         
      Struct _arg=new StructImpl();
      if(fa.isRequired()) min++;
      max++;
      _arg.set(KeyConstants._required,fa.isRequired()?Boolean.TRUE:Boolean.FALSE);
      _arg.set(KeyConstants._type,StringUtil.emptyIfNull(fa.getTypeAsString()));
      _arg.set(KeyConstants._name,StringUtil.emptyIfNull(fa.getName()));
      _arg.set(KeyConstants._description,StringUtil.emptyIfNull(fa.getHint()));
     
      String status;
      if(meta==null)status="implemeted";
      else status=TagLibFactory.toStatus(TagLibFactory.toStatus(Caster.toString(meta.get(KeyConstants._status,"implemeted"))));
     
View Full Code Here

       
        DumpTable atts = closure?new DumpTable("udf","#ff00ff","#ffccff","#000000"):new DumpTable("udf","#cc66ff","#ffccff","#000000");
       
    atts.appendRow(new DumpRow(63,new DumpData[]{new SimpleDumpData("label"),new SimpleDumpData("name"),new SimpleDumpData("required"),new SimpleDumpData("type"),new SimpleDumpData("default"),new SimpleDumpData("hint")}));
    for(int i=0;i<args.length;i++) {
      FunctionArgument arg=args[i];
      DumpData def;
      try {
        Object oa=null;
                try {
                    oa = UDFUtil.getDefaultValue(pageContext, (UDFPlus)udf, i, null);//udf.getDefaultValue(pageContext,i,null);
                } catch (PageException e1) {
                }
                if(oa==null)oa="null";
        def=new SimpleDumpData(Caster.toString(oa));
      } catch (PageException e) {
        def=new SimpleDumpData("");
      }
      atts.appendRow(new DumpRow(0,new DumpData[]{
          new SimpleDumpData(arg.getDisplayName()),
          new SimpleDumpData(arg.getName().getString()),
          new SimpleDumpData(arg.isRequired()),
          new SimpleDumpData(arg.getTypeAsString()),
          def,
          new SimpleDumpData(arg.getHint())}));
      //atts.setRow(0,arg.getHint());
     
    }
   
    DumpTable func = closure?new DumpTable("#ff00ff","#ffccff","#000000"):new DumpTable("#cc66ff","#ffccff","#000000");
View Full Code Here

TOP

Related Classes of railo.runtime.type.FunctionArgument

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.