Package railo.transformer.bytecode.statement.tag

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


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


        }
        else if(attr.getName().equalsIgnoreCase("type")){
          hasType=true;
          //attr=new Attribute(attr.isDynamicType(),attr.getName(),CastString.toExprString(attr.getValue()),"string");
        }
        property.addAttribute(attr);
      }
    }
   
    // now fill name named attributes -> attr1 attr2
   
View Full Code Here

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

   
View Full Code Here

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

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

        hasType=true;
        property.addAttribute(new Attribute(false,"name",LitString.toExprString(second),"string"));
        property.addAttribute(new Attribute(false,"type",LitString.toExprString(first),"string"));
      }
      else {
        property.addAttribute(new Attribute(false,"name",LitString.toExprString(first),"string"));
      }
    }
   
    if(!hasType)
      property.addAttribute(ANY);
View Full Code Here

        property.addAttribute(new Attribute(false,"name",LitString.toExprString(first),"string"));
      }
    }
   
    if(!hasType)
      property.addAttribute(ANY);
   
    if(!hasName)
      throw new TemplateException(data.cfml,"missing name declaration for property");

    /*Tag property=new TagBase(line);
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.