Package anvil.codec

Examples of anvil.codec.Source.bind()


      _thenStatements.compile(context);
      if (_elseStatements != null) {
        Source to_end = code.go_to();
        to_then.bind();
        _elseStatements.compile(context);
        to_end.bind();
      } else {
        to_then.bind();
      }
      break;
    }
View Full Code Here


    getChild(1).compile(context, operation);
    Source out = code.go_to();
    code.popop();
    isfalse.bind();
    getChild(2).compile(context, operation);
    out.bind();
  }

}
View Full Code Here

                code.invokevirtual(sig_toBoolean);
                code.ireturn();
              } else {
                code.areturn();
              }
              isfalse.bind();
            }
          }
          code.go_to(notfound);
        }
        select.bindDefault();
View Full Code Here

            code.invokevirtual(sig_toBoolean);
            code.ireturn();
          } else {
            code.areturn();
          }
          isfalse.bind();
        }
      }
    }
   
    if (callback != null) {
View Full Code Here

    code.self();
    context.compileArgumentList(function, CAST_P1_NODE, 2);
    code.invokevirtual(function.getTypeRef(pool));
    code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "toBoolean", "()Z"));
    code.ireturn();
    isfalse.bind();
    code.iconst(false);
    code.ireturn();
    context.popCode();
  }
 
View Full Code Here

    if (operation == GET_BOOLEAN) {
      code.iconst(true);
    } else {
      code.getstatic(pool.addFieldRef(context.TYPE_ANY, "TRUE", "Lanvil/core/Any;"));
    }
    toend.bind();
  }
 

}
View Full Code Here

      int n = _action.length;
      for(int i = 0; i<n; i++) {
        _action[i].compile(context, Expression.GET);
        code.pop();
      }
      skip.bind();
    }

    if (_condition != null) {
      switch(_condition.conditionOf()) {
      case Expression.IS_FALSE:
View Full Code Here

    code.iconst(true);
    Source toend = code.go_to();
    isfalse.bind();
    code.pop();
    code.iconst(false);
    toend.bind();
    if (operation != GET_BOOLEAN) {
      context.boolean2any();
    }
  }
View Full Code Here

        code.dup();
        code.invokevirtual(pool.addMethodRef(context.TYPE_ANY, "isUndefined", "()Z"));
        Source isfalse = code.if_eq();
        code.pop();
        right.compile(context, GET);
        isfalse.bind();
      }
    });
  }
 
View Full Code Here

      code.aload_first();
      code.astring(_image);
      code.invokevirtual(pool.addMethodRef("anvil/script/Context", "AssertFailed",
        "(Ljava/lang/String;)Lanvil/script/ScriptException;"));
      code.athrow();
      source.bind();
    }
  }  


  public boolean onTag(TemplateParser parser, int type, Tag tag)
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.