Package railo.transformer.bytecode.literal

Examples of railo.transformer.bytecode.literal.Identifier


   
     
     
    // get First Element of the Variable
    Position line = data.cfml.getPosition();
    Identifier id = identifier(data,false,true);
    if(id == null) {
        if (!data.cfml.forwardIfCurrent('(')) return null;
       
            comments(data);
      Expression expr = assignOp(data);

      if (!data.cfml.forwardIfCurrent(')'))
        throw new TemplateException(
          data.cfml,
          "Invalid Syntax Closing [)] not found");
            comments(data);
            return expr;//subDynamic(expr);
           
    }
     
    Variable var;
        comments(data);
   
    // Boolean constant
    if(id.getString().equalsIgnoreCase("TRUE"))  {// || name.equals("YES"))  {
      comments(data);
      return new LitBoolean(true,line,data.cfml.getPosition());
    }
    else if(id.getString().equalsIgnoreCase("FALSE"))  {// || name.equals("NO"))  {
      comments(data);
      return new LitBoolean(false,line,data.cfml.getPosition());
    }
    else if(NullSupportHelper.full() && id.getString().equalsIgnoreCase("NULL"))  {
      comments(data);
      return new Null(line,data.cfml.getPosition());
    }
   
    // Extract Scope from the Variable
View Full Code Here


    else if (idStr.equals("CLIENT"))    return new Variable(Scope.SCOPE_CLIENT,line,data.cfml.getPosition());
    else if (idStr.equals("COOKIE"))    return new Variable(Scope.SCOPE_COOKIE,line,data.cfml.getPosition());
    else if (idStr.equals("CLUSTER"))    return new Variable(Scope.SCOPE_CLUSTER,line,data.cfml.getPosition());
    else if (idStr.equals("LOCAL"))      return new Variable(Scope.SCOPE_LOCAL,line,data.cfml.getPosition());
    else if (idStr.equals("VAR")) {
      Identifier _id = identifier(data,false,true);
      if(_id!=null){
        comments(data);
        Variable local = new Variable(ScopeSupport.SCOPE_VAR,line,data.cfml.getPosition());
        if(!"LOCAL".equalsIgnoreCase(_id.getString()))local.addMember(new DataMember(_id));
        else {
          local.ignoredFirstMember(true);
        }
        return local;
      }
View Full Code Here

TOP

Related Classes of railo.transformer.bytecode.literal.Identifier

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.