Package railo.transformer.bytecode.statement.tag

Examples of railo.transformer.bytecode.statement.tag.TagParam.addAttribute()


    boolean hasType=false;
    int pos = data.cfml.getPos();
    String tmp=variableDec(data, true);
    if(!StringUtil.isEmpty(tmp)) {
      if(tmp.indexOf('.')!=-1) {
        param.addAttribute(new Attribute(false,"type",LitString.toExprString(tmp),"string"));
        hasType=true;
      }
      else data.cfml.setPos(pos);
    }
    else data.cfml.setPos(pos);
View Full Code Here


    for(int i=attrs.length-1;i>=0;i--){
      attr=attrs[i];
      if(!attr.getValue().equals(NULL)){
        if(attr.getName().equalsIgnoreCase("name")){
          hasName=true;
          param.addAttribute(attr);
        }
        else if(attr.getName().equalsIgnoreCase("type")){
          hasType=true;
          param.addAttribute(attr);
        }
View Full Code Here

          hasName=true;
          param.addAttribute(attr);
        }
        else if(attr.getName().equalsIgnoreCase("type")){
          hasType=true;
          param.addAttribute(attr);
        }
        else if(attr.isDynamicType()){
          hasName=true;
          if(hasDynamic) throw attrNotSupported(data.cfml,tlt,attr.getName());
          hasDynamic=true;
View Full Code Here

        }
        else if(attr.isDynamicType()){
          hasName=true;
          if(hasDynamic) throw attrNotSupported(data.cfml,tlt,attr.getName());
          hasDynamic=true;
          param.addAttribute(new Attribute(false,"name",LitString.toExprString(attr.getName()),"string"));
          param.addAttribute(new Attribute(false,"default",attr.getValue(),"any"));
        }
        else
          param.addAttribute(attr);
      }
View Full Code Here

        else if(attr.isDynamicType()){
          hasName=true;
          if(hasDynamic) throw attrNotSupported(data.cfml,tlt,attr.getName());
          hasDynamic=true;
          param.addAttribute(new Attribute(false,"name",LitString.toExprString(attr.getName()),"string"));
          param.addAttribute(new Attribute(false,"default",attr.getValue(),"any"));
        }
        else
          param.addAttribute(attr);
      }
    }
View Full Code Here

          hasDynamic=true;
          param.addAttribute(new Attribute(false,"name",LitString.toExprString(attr.getName()),"string"));
          param.addAttribute(new Attribute(false,"default",attr.getValue(),"any"));
        }
        else
          param.addAttribute(attr);
      }
    }
   
    // now fill name named attributes -> attr1 attr2
    String first=null,second=null;
View Full Code Here

          second=attr.getName();
        }
        // attr with no value
        else {
          attr=new Attribute(true,attr.getName(),LitString.EMPTY,"string");
          param.addAttribute(attr);
        }
      }
    }

   
View Full Code Here

      if(second!=null){
        hasName=true;
        hasType=true;
        if(hasDynamic) throw attrNotSupported(data.cfml,tlt,first);
        hasDynamic=true;
        param.addAttribute(new Attribute(false,"name",LitString.toExprString(second),"string"));
        param.addAttribute(new Attribute(false,"type",LitString.toExprString(first),"string"));
      }
      else {
        param.addAttribute(new Attribute(false,hasName?"type":"name",LitString.toExprString(first),"string"));
        hasName=true;
View Full Code Here

        hasName=true;
        hasType=true;
        if(hasDynamic) throw attrNotSupported(data.cfml,tlt,first);
        hasDynamic=true;
        param.addAttribute(new Attribute(false,"name",LitString.toExprString(second),"string"));
        param.addAttribute(new Attribute(false,"type",LitString.toExprString(first),"string"));
      }
      else {
        param.addAttribute(new Attribute(false,hasName?"type":"name",LitString.toExprString(first),"string"));
        hasName=true;
      }
View Full Code Here

        hasDynamic=true;
        param.addAttribute(new Attribute(false,"name",LitString.toExprString(second),"string"));
        param.addAttribute(new Attribute(false,"type",LitString.toExprString(first),"string"));
      }
      else {
        param.addAttribute(new Attribute(false,hasName?"type":"name",LitString.toExprString(first),"string"));
        hasName=true;
      }
    }
   
    //if(!hasType)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.