Examples of Code


Examples of com.sun.tools.javac.jvm.Code

        private int initCode(JCMethodDecl tree, Env<GenContext> env, boolean fatcode) {
            MethodSymbol meth = tree.sym;

            // Create a new code structure.
            meth.code = code = new Code(meth,
                                        fatcode,
                                        lineDebugInfo ? toplevel.lineMap : null,
                                        varDebugInfo,
                                        stackMap,
                                        debugCode,
View Full Code Here

Examples of com.techtrader.modules.tools.bytecode.Code

        if (bmeth == null)
            return null;

        // Get the Code object, which contains the local variable table.
        Code code = bmeth.getCode();
        if (code == null)
            return null;

        LocalVariableTableAttribute attr =
                (LocalVariableTableAttribute)code.getAttribute(Constants.ATTR_LOCALS);

        if (attr == null)
            return null;

        // OK, found it.  Now scan through the local variables and record
View Full Code Here

Examples of de.agilecoders.wicket.core.markup.html.bootstrap.block.Code

     */
    public DatePickerPage(PageParameters parameters) {
        super(parameters);

        add(newDefaultDatePicker("default"),
            new Code("default-html-code", Model.of("//HTML\n<form><input wicket:id=\"default\"></form>")).setShowLineNumbers(true),
            new Code("default-java-code", Model.of("//JAVA\nadd(new DateTextField(\"default\"));")).setShowLineNumbers(true));

        add(newDatePicker("birthday", new DateTextFieldConfig().showTodayButton(DateTextFieldConfig.TodayButton.TRUE).withStartDate(new DateTime().withYear(1900)).autoClose(true).withView(DateTextFieldConfig.View.Decade)),
            new Code("birthday-html-code", Model.of("//HTML\n<form><input wicket:id=\"birthday\"></form>")).setShowLineNumbers(true),
            new Code("birthday-java-code", Model.of("//JAVA\nadd(new DateTextField(\"birthday\",\n\t\t new DateTextFieldConfig()\n"
                                                    + "\t\t\t.autoClose(true)\n"
                                                    + "\t\t\t.withView(DateTextFieldConfig.View.Decade)\n"
                                                    + "\t\t\t.showTodayButton(true)\n"
                                                    + "\t\t\t.withStartDate(new DateTime().withYear(1900));")).setShowLineNumbers(true));

        add(newDatePicker("language", new DateTextFieldConfig().showTodayButton(DateTextFieldConfig.TodayButton.LINKED).autoClose(true).withLanguage("es")),
            new Code("language-html-code", Model.of("//HTML\n<form><input wicket:id=\"language\"></form>")).setShowLineNumbers(true),
            new Code("language-java-code", Model.of("//JAVA\nadd(new DateTextField(\"language\",\n\t\t new DateTextFieldConfig()\n"
                                                    + "\t\t\t.autoClose(true)\n"
                                                    + "\t\t\t.withLanguage(\"es\")\n"
                                                    + "\t\t\t.showTodayButton(true);")).setShowLineNumbers(true));

        DatePickerModal modal = new DatePickerModal("modal");
View Full Code Here

Examples of de.sebastianbenz.task.Code

  private Code code(String value) {
    return code("", value);
  }

  private Code code(String intend, String value) {
    Code code = TaskFactory.eINSTANCE.createCode();
    code.setText(value);
    code.setIntend(intend);
    return code;
  }
View Full Code Here

Examples of hirondelle.web4j.model.Code

   This item is package-private. The {@link CodeTable#codeFor(Id, CodeTable)} method is a <tt>public</tt>
   version of this method, and simply does a call forward to this one. The reason is simply to reduce the number
   of imports needed in Model Objects that use Codes from 3 to 2 : {@link Code} and {@link CodeTable}.
  */
  static Code populate(Id aCodeId, CodeTable aCodeTable){
    Code result = null;
    Map<Id, Code> codeTable = fAllCodeTables.get(aCodeTable);
    if ( codeTable == null ){
      throw new RuntimeException("Cannot populate item. Unknown code table " + Util.quote(aCodeTable));
    }
    if ( aCodeId != null ){
View Full Code Here

Examples of jetbrick.template.parser.code.Code

        parser.addErrorListener(JetTemplateErrorListener.getInstance());
        parser.setErrorHandler(new JetTemplateErrorStrategy());

        TemplateContext templateParseTree = parser.template();
        JetTemplateCodeVisitor visitor = new JetTemplateCodeVisitor(engine, engine.getVariableResolver(), engine.getSecurityManager(), parser, resource);
        Code code = templateParseTree.accept(visitor);
        return code.toString();
    }
View Full Code Here

Examples of mungbean.protocol.bson.Code

            builder.field("foo").where("this.a>3");
            return builder;
        }

        public void queryMapCanBeConstructed() {
            specify(context.build(), does.equal(map("foo", new Code("this.a>3"))));
        }
View Full Code Here

Examples of net.sf.rej.java.Code

    public CodeAttribute(int nameIndex, ConstantPool cp, int maxStack, int maxLocals) {
        super(nameIndex, cp);
        this.maxStack = maxStack;
        this.maxLocals = maxLocals;
        this.code = new Code(cp);
        this.exceptions = new Exceptions();
        this.attributes = new Attributes();
    }
View Full Code Here

Examples of objot.bytecode.Code

    y = y_;
    cons = y.cons;
    clazzCi = cons.addClass(target);
    ao = ao_;
    wp = new Procedure(cons);
    wo = new Code(cons, ao.bytes, ao.beginBi);
    wp.setCode(wo);
  }
View Full Code Here

Examples of org.apache.bcel.classfile.Code

        } else if (etaba != null || etabb != null) {
            return false;
        }
       
        // compare the exception handling details
        Code acode = a.getCode();
        Code bcode = b.getCode();
        CodeException[] acexs = acode.getExceptionTable();
        CodeException[] bcexs = bcode.getExceptionTable();
        if (acexs.length == bcexs.length) {
            for (int i = 0; i < acexs.length; i++) {
                CodeException acex = acexs[i];
                CodeException bcex = bcexs[i];
                if (acex.getCatchType() != bcex.getCatchType() ||
                    acex.getStartPC() != bcex.getStartPC() ||
                    acex.getEndPC() != bcex.getEndPC() ||
                    acex.getHandlerPC() != bcex.getHandlerPC()) {
                    return false;
                }
            }
        }
       
        // finally compare the actual byte codes
        return Arrays.equals(acode.getCode(), bcode.getCode());
    }
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.