Examples of visit()


Examples of org.nutz.repo.org.objectweb.asm.ClassWriter.visit()

    }

    protected static synchronized Class<?> create(Class<?> classZ) {
        String myName = classZ.getName().replace('.', '/') + FastClass.CLASSNAME + count.getAndIncrement();
        ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
        cw.visit(V1_6,
                 ACC_PUBLIC,
                 myName,
                 null,
                 "org/nutz/lang/reflect/AbstractFastClass",
                 null);
View Full Code Here

Examples of org.objectweb.asm.AnnotationVisitor.visit()

        // method is done, declare all variables
        variableCompiler.declareLocals(scope, scopeStart, scopeEnd);
       
        // Define the annotation for the method
        AnnotationVisitor annotation = method.visitAnnotation(ci(JRubyMethod.class), true);
        annotation.visit("name", rubyName);
        annotation.visit("frame", true);
        annotation.visit("required", scope.getRequiredArgs());
        annotation.visit("optional", scope.getOptionalArgs());
        annotation.visit("rest", scope.getRestArg());
        // TODO: reads/writes from frame
View Full Code Here

Examples of org.objectweb.asm.ClassAdapter.visit()

                final String signature,
                final String superName,
                final String[] interfaces)
            {
                owner = name;
                cv.visit(version,
                        access,
                        name,
                        signature,
                        superName,
                        interfaces);
View Full Code Here

Examples of org.objectweb.asm.ClassVisitor.visit()

        try {
            Class existing = classLoader.loadClass(name);
            return (Handle)existing.newInstance();
        } catch (Exception e) {
        }
        cv.visit(ACC_PUBLIC | ACC_FINAL | ACC_SUPER, V1_5, name, null, p(Handle.class), null);
       
        SkinnyMethodAdapter m;
        String signature;
        switch (paramTypes.length) {
        case 0:
View Full Code Here

Examples of org.objectweb.asm.ClassWriter.visit()

        ClassWriter visitor = new ClassWriter(ClassWriter.COMPUTE_MAXS);
        String typeName = StringUtils.substringBeforeLast(type.getName(), ".") + ".LocationAware" + type.getSimpleName();
        Type generatedType = Type.getType("L" + typeName.replaceAll("\\.", "/") + ";");
        Type superclassType = Type.getType(type);

        visitor.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC, generatedType.getInternalName(), null,
                superclassType.getInternalName(), new String[]{Type.getType(LocationAwareException.class).getInternalName()});

        Type helperType = Type.getType(ExceptionHelper.class);
        Type throwableType = Type.getType(Throwable.class);
        Type scriptSourceType = Type.getType(ScriptSource.class);
View Full Code Here

Examples of org.objectweb.asm.tree.ClassNode.visit()

        return new MethodNode(0, "method", "(java/lang/String)V", null, null);
    }

    private ClassNode classNode() {
        ClassNode node = new ClassNode();
        node.visit(0, 0, "my/Component", null, "java/lang/Object", null);
        return node;
    }

    public void testSelectionWithEmptyRegistry() throws Exception {
        Selection selection = new Selection(registry, null, reporter);
View Full Code Here

Examples of org.objectweb.asm.util.CheckClassAdapter.visit()

  public byte[] generate(PrintWriter printWriter) {
    ClassWriter cw = new ClassWriter(0);
    TraceClassVisitor tcv = new TraceClassVisitor(cw, printWriter);
    CheckClassAdapter cv = new CheckClassAdapter(tcv);
    cv.visit(V1_5, ACC_PUBLIC + ACC_ABSTRACT + ACC_INTERFACE,
        "pkg/Comparable", null, "java/lang/Object",
        new String[] { "pkg/Mesurable" });
    cv.visitSource("Comparable.java", null);
    cv.visitField(ACC_PUBLIC + ACC_FINAL + ACC_STATIC, "LESS", "I",
        null, new Integer(-1)).visitEnd();
View Full Code Here

Examples of org.objectweb.speedo.query.jdo.parser.SelectGroupByVisitor.visit()

        assignMapper(sp);
        assignMapper(qt);

        SelectGroupByVisitor sgv = new SelectGroupByVisitor(sp, qt, sqvv, classLoader);
       
        sgv.visit(qd);
        assignMapper(sp);
       
        logger.log(BasicLevel.INFO, "QueryTree built");
        if (debug) {
            QueryTreePrinter.printQueryTree(sp, logger);
View Full Code Here

Examples of org.odftoolkit.odfdom.dom.DefaultElementVisitor.visit()

  @Override
  public void accept(ElementVisitor visitor) {
    if (visitor instanceof DefaultElementVisitor) {
      DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;
      defaultVisitor.visit(this);
    } else {
      visitor.visit(this);
    }
  }
}
View Full Code Here

Examples of org.opengis.feature.FeatureVisitor.visit()

            while( iterator.hasNext()) {
              SimpleFeature feature = (SimpleFeature) iterator.next();
   
                for (int i = 0; i < visitors.length; i++) {
                    FeatureVisitor visitor = visitors[i];
                    visitor.visit(feature);
                }
            }
        } finally {
            iterator.close();
        }
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.