Examples of DescendingVisitor


Examples of com.sun.org.apache.bcel.internal.classfile.DescendingVisitor

    public synchronized Collection getAllReferencedClassNamesInInternalForm() {
        if (classNames == null) {
            classNames = new HashSet<String>();//lazy instantiation
            logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
                    "Starting to visit"); // NOI18N
            jc.accept(new DescendingVisitor(jc, new Visitor(this)));
            logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
                    "Finished visting"); // NOI18N
            classNames = Collections.unmodifiableSet(classNames);
        }
        return classNames;
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.classfile.DescendingVisitor

    public synchronized Collection getAllReferencedClassNamesInInternalForm() {
        if (classNames == null) {
            classNames = new HashSet<String>();//lazy instantiation
            logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
                    "Starting to visit"); // NOI18N
            jc.accept(new DescendingVisitor(jc, new Visitor(this)));
            logger.logp(Level.FINER, myClassName, "getAllReferencedClassNames", // NOI18N
                    "Finished visting"); // NOI18N
            classNames = Collections.unmodifiableSet(classNames);
        }
        return classNames;
View Full Code Here

Examples of org.apache.bcel.classfile.DescendingVisitor

   * @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

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

Examples of org.apache.bcel.classfile.DescendingVisitor

    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

Examples of org.apache.bcel.classfile.DescendingVisitor

                        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

Examples of org.apache.bcel.classfile.DescendingVisitor

                        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

Examples of org.apache.bcel.classfile.DescendingVisitor

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

      } catch (ClassNotFoundException e) {
    // FIXME: this might not be the best way to handle missing classes.
    throw new AssertionViolatedException("Missing class: " + e.toString());
      }
View Full Code Here

Examples of org.apache.bcel.classfile.DescendingVisitor

    /** 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

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
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.