Package railo.transformer.bytecode.expression.var

Examples of railo.transformer.bytecode.expression.var.NamedArgument


  private Argument functionArgument(ExprData data,String type, boolean varKeyUpperCase) throws TemplateException {
    Expression expr = assignOp(data);
    try{
      if (data.cfml.forwardIfCurrent(":")) {
        comments(data);
        return new NamedArgument(expr,assignOp(data),type,varKeyUpperCase);
      }
      else if(expr instanceof DynAssign){
        DynAssign da=(DynAssign) expr;
        return new NamedArgument(da.getName(),da.getValue(),type,varKeyUpperCase);
      }
      else if(expr instanceof Assign && !(expr instanceof OpVariable)){
        Assign a=(Assign) expr;
        return new NamedArgument(a.getVariable(),a.getValue(),type,varKeyUpperCase);
      }
    }
    catch(BytecodeException be) {
      throw new TemplateException(data.cfml,be.getMessage());
    }
View Full Code Here


            FunctionLibFunctionArg arg;
            while(it.hasNext()){
              arg=it.next();
              if(arg.getDefaultValue()!=null)
                bif.addArgument(
                    new NamedArgument(
                        LitString.toExprString(arg.getName()),
                        LitString.toExprString(arg.getDefaultValue()),
                        arg.getTypeAsString(),false
                        ));
            }
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.expression.var.NamedArgument

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.