Package org.apache.bcel.classfile

Examples of org.apache.bcel.classfile.DescendingVisitor


      CONST_Long = org.apache.bcel.classfile.ConstantLong.class;
      CONST_Double = org.apache.bcel.classfile.ConstantDouble.class;
      CONST_NameAndType = org.apache.bcel.classfile.ConstantNameAndType.class;
      CONST_Utf8 = org.apache.bcel.classfile.ConstantUtf8.class;

      carrier = new DescendingVisitor(_jc, this);
      carrier.visit();
    }
View Full Code Here


    /** Constructs an InnerClassDetector working on the JavaClass _jc. */
    public InnerClassDetector(JavaClass _jc){
      jc = _jc;
      cp = jc.getConstantPool();
      (new DescendingVisitor(jc, this)).visit();
    }
View Full Code Here

                        parser = new ClassParser(container.getPath(),
                            classname.replace('.', '/') + ".class");
                    }

                    JavaClass javaClass = parser.parse();
                    DescendingVisitor traverser
                         = new DescendingVisitor(javaClass, dependencyVisitor);
                    traverser.visit();
                } catch (IOException ioe) {
                    // ignore
                }
            }
View Full Code Here

                    classes.addClassName( classSignature );
                    classes.addPackage( classPackageName );

                    ImportVisitor importVisitor = new ImportVisitor( javaClass );
                    DescendingVisitor descVisitor = new DescendingVisitor( javaClass, importVisitor );
                    javaClass.accept( descVisitor );

                    classes.addImports( importVisitor.getImports() );
                }
                catch ( ClassFormatException e )
View Full Code Here

        String classname = "org/apache/maven/jxr/DirectoryIndexer.class";
        ClassParser classParser = new ClassParser( jxrjar.getAbsolutePath(), classname );
        JavaClass javaClass = classParser.parse();

        ImportVisitor importVisitor = new ImportVisitor( javaClass );
        DescendingVisitor descVisitor = new DescendingVisitor( javaClass, importVisitor );
        javaClass.accept( descVisitor );

        List imports = importVisitor.getImports();
        assertNotNull( "Import List", imports );
View Full Code Here

        String classname = "org/apache/tools/ant/Target.class";
        ClassParser classParser = new ClassParser( jxrjar.getAbsolutePath(), classname );
        JavaClass javaClass = classParser.parse();

        ImportVisitor importVisitor = new ImportVisitor( javaClass );
        DescendingVisitor descVisitor = new DescendingVisitor( javaClass, importVisitor );
        javaClass.accept( descVisitor );

        List imports = importVisitor.getImports();
        assertNotNull( "Import List", imports );
View Full Code Here

   * @throws ClassConstraintException otherwise.
   * @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();
  }
View Full Code Here

      CONST_Long = org.apache.bcel.classfile.ConstantLong.class;
      CONST_Double = org.apache.bcel.classfile.ConstantDouble.class;
      CONST_NameAndType = org.apache.bcel.classfile.ConstantNameAndType.class;
      CONST_Utf8 = org.apache.bcel.classfile.ConstantUtf8.class;

      carrier = new DescendingVisitor(_jc, this);
      carrier.visit();
    }
View Full Code Here

    private InnerClassDetector(){} // Don't use.
    /** Constructs an InnerClassDetector working on the JavaClass _jc. */
    public InnerClassDetector(JavaClass _jc){
      jc = _jc;
      cp = jc.getConstantPool();
      (new DescendingVisitor(jc, this)).visit();
    }
View Full Code Here

                return;
   
            ConstantPool pool = javaClass.getConstantPool();
            processConstantPool(pool);
            VisitorImpl visitor = new VisitorImpl(pool, this, d, task.getLocation());
            DescendingVisitor desc = new DescendingVisitor(javaClass, visitor);
            desc.visit();
        } catch(BuildException e) {
            log(Design.getWrapperMsg(originalClassOrJarFile, e.getMessage()), Project.MSG_ERR);
            designErrors.addElement(e);        
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.bcel.classfile.DescendingVisitor

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.