Package railo.transformer.bytecode.expression.var

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


        if(!(e instanceof Literal)) {
          Expression expr=removeCastString(e);
         
          if(expr instanceof Variable) {
            // do not preserve BIF PreserveSingleQuotes return value
            Member member = ((Variable)expr).getFirstMember();
            if(member instanceof BIF) {
              BIF bif=(BIF) member;

              if(bif.getClazz().getName().equals(PreserveSingleQuotes.class.getName())) {
                printOut.setExpr(bif.getArguments()[0].getValue());
View Full Code Here


    }
    // createTimespan
    else if(val instanceof Variable) {
      Variable var=(Variable)val;
      if(var.getMembers().size()==1) {
        Member first = var.getFirstMember();
        if(first instanceof BIF) {
          BIF bif=(BIF) first;
          if("createTimeSpan".equalsIgnoreCase(bif.getFlf().getName())) {
            Argument[] args = bif.getArguments();
            int len=ArrayUtil.size(args);
View Full Code Here

    return SourceNameClassVisitor.getSourceName(clazz);
  }

  public static boolean hasOnlyDataMembers(Variable var) {
    Iterator<Member> it = var.getMembers().iterator();
    Member m;
    while(it.hasNext()){
      m = it.next();
      if(!(m instanceof DataMember)) return false;
    }
    return true;
View Full Code Here

  }
 
  private Expression newOp(ExprData data,Expression expr) throws TemplateException {
    if(!(expr instanceof Variable)) return expr;
    Variable var=(Variable) expr;
    Member m= var.getFirstMember();
    if(!(m instanceof DataMember)) return expr;
   
    ExprString n = ((DataMember)m).getName();
    if(!(n instanceof LitString)) return expr;
   
View Full Code Here

    }
     
    expr.writeOut(bc, Expression.MODE_REF);
   
    for(int i=0;i<count;i++) {
      Member member=((Member)members.get(i));
       
      // Data Member
      if(member instanceof DataMember)  {
        ((DataMember)member).getName().writeOut(bc, MODE_REF);
        adapter.invokeVirtual(Types.PAGE_CONTEXT,((i+1)==count)?GET:GET_COLLECTION);
View Full Code Here

TOP

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

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.