Examples of visit()


Examples of org.apache.xbean.asm.ClassWriter.visit()

    String clsToOverride = clsToProxy.getName().replaceAll("\\.", "/");
        String proxyClassName = proxyName.replaceAll("\\.", "/");

        // push class signature
        cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, proxyClassName, null, clsToOverride, null);
    cw.visitSource(clsToOverride + ".java", null);

    // push InvocationHandler fields
    fv = cw.visitField(ACC_FINAL + ACC_PRIVATE, BUSSINESS_HANDLER_NAME, "Ljava/lang/reflect/InvocationHandler;", null, null);
    fv.visitEnd();
View Full Code Here

Examples of org.apache.xbean.asm4.ClassWriter.visit()

        {
            interfaceNames = new String[]{Type.getInternalName(classToProxy), interfaceNames[0]};
            superClassName = Type.getInternalName(Object.class);
        }

        cw.visit(Opcodes.V1_5, Opcodes.ACC_PUBLIC + Opcodes.ACC_SUPER + Opcodes.ACC_SYNTHETIC, proxyClassFileName, null, superClassName, interfaceNames);
        cw.visitSource(classFileName + ".java", null);

        createInstanceVariables(cw, classToProxy, classFileName);
        createSerialisation(cw, proxyClassFileName, classToProxy, classFileName);
View Full Code Here

Examples of org.apache.xbean.asm5.ClassWriter.visit()

        for (int i = 0; i < interfaces.length; i++) {
            final Class<?> anInterface = interfaces[i];
            interfaceNames[i] = anInterface.getName().replace('.', '/');
        }

        cw.visit(V1_5, ACC_PUBLIC + ACC_SUPER, proxyClassFileName, null, classFileName, interfaceNames);
        cw.visitSource(classFileName + ".java", null);

        cw.visitAnnotation("L" + Proxy.class.getName().replace('.', '/') + ";", true).visitEnd();

        // push InvocationHandler fields
View Full Code Here

Examples of org.apache.xmlbeans.impl.values.TypeStoreVisitor.visit()

        for ( Xobj x = _parent._firstChild ; ; x = x._nextSibling )
        {
            if (x.isElem())
            {
                visitor.visit( x._name );

                if (x == this)
                    return visitor.get_schema_field();
            }
        }
View Full Code Here

Examples of org.apache.xmlbeans.values.TypeStoreVisitor.visit()

        {
            TypeStoreVisitor visitor = _parent._user.new_visitor();
            for (Iterator i = _parent._childElementTypeStores.iterator(); i.hasNext(); )
            {
                TestTypeStore sibling = (TestTypeStore)i.next();
                visitor.visit(sibling._name);
                if (sibling == this)
                    return visitor.get_default_text();
            }
            assert(false) : "Invariant error: parent doesn't have this as child.";
        }
View Full Code Here

Examples of org.aspectj.apache.bcel.classfile.DescendingVisitor.visit()

   * @see #constant_pool_entries_satisfy_static_constraints()
   */
  private void field_and_method_refs_are_valid(){
    JavaClass jc = Repository.lookupClass(myOwner.getClassName());
    DescendingVisitor v = new DescendingVisitor(jc, new FAMRAV_Visitor(jc));
    v.visit();
  }

  /**
   * A Visitor class that ensures the ConstantCP-subclassed entries
   * of the constant pool are valid.
View Full Code Here

Examples of org.candle.decompiler.intermediate.expression.Expression.visit()

  @Override
  public void visitStatementIntermediate(StatementIntermediate line) {
    Expression exp = line.getExpression();
   
    //ok, now we can visit the expression...
    exp.visit(new ASTListener() {
     
      @Override
      public void accept(Expression e) {
        if(e instanceof NewInstance) {
          if(((NewInstance) e).getType() instanceof ObjectType) {
View Full Code Here

Examples of org.codehaus.groovy.ast.ASTNode.visit()

        List methods = classNode.getDeclaredMethods( "run" );
        MethodNode method = ( MethodNode ) methods.get( 0 );
        ASTNode expr = method.getCode( );

        GroovyExprVisitor visitor = new GroovyExprVisitor( );
        expr.visit( visitor );
        Set refs = visitor.getVariables( );

        List decls = new LinkedList( );
        for ( Iterator declIter = availDecls.iterator( ); declIter.hasNext( ); )
        {
View Full Code Here

Examples of org.codehaus.groovy.ast.expr.ArgumentListExpression.visit()

        if (numberOfArguments > MethodCallerMultiAdapter.MAX_ARGS || containsSpreadExpression) {
            ArgumentListExpression ae = makeArgumentList(arguments);
            if (containsSpreadExpression) {
                acg.despreadList(ae.getExpressions(), true);
            } else {
                ae.visit(acg);
            }
        } else if (numberOfArguments > 0) {
            operandsToRemove += numberOfArguments;
            TupleExpression te = (TupleExpression) arguments;
            for (int i = 0; i < numberOfArguments; i++) {
View Full Code Here

Examples of org.codehaus.groovy.ast.expr.ArrayExpression.visit()

        ClassNode rhsType;
        if (rightExpression instanceof ListExpression && lhsType.isArray()) {
            ListExpression list = (ListExpression) rightExpression;
            ArrayExpression array = new ArrayExpression(lhsType.getComponentType(), list.getExpressions());
            array.setSourcePosition(list);
            array.visit(acg);
        } else if (rightExpression instanceof EmptyExpression) {
            rhsType = leftExpression.getType();
            loadInitValue(rhsType);
        } else {
            rightExpression.visit(acg);
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.