Search in sources :

Example 1 with Visitor

use of org.apache.bcel.classfile.Visitor in project contribution by checkstyle.

the class VisitorSet method visitLocalVariableTable.

// /**
// * @see org.apache.bcel.classfile.Visitor
// */
// public void visitLocalVariable(LocalVariable aLocalVariable)
// {
// for (Iterator iter = mVisitors.iterator(); iter.hasNext();) {
// IDeepVisitor visitor = (IDeepVisitor) iter.next();
// Visitor v = visitor.getClassFileVisitor();
// aLocalVariable.accept(v);
// }
// }
// 
/**
 * @see org.apache.bcel.classfile.Visitor
 */
public void visitLocalVariableTable(LocalVariableTable aTable) {
    for (Iterator iter = mVisitors.iterator(); iter.hasNext(); ) {
        IDeepVisitor visitor = (IDeepVisitor) iter.next();
        Visitor v = visitor.getClassFileVisitor();
        aTable.accept(v);
    }
}
Also used : Visitor(org.apache.bcel.classfile.Visitor) EmptyVisitor(org.apache.bcel.classfile.EmptyVisitor) Iterator(java.util.Iterator)

Example 2 with Visitor

use of org.apache.bcel.classfile.Visitor in project contribution by checkstyle.

the class VisitorSet method visitJavaClass.

/**
 * @see org.apache.bcel.classfile.Visitor
 */
public void visitJavaClass(JavaClass aJavaClass) {
    for (Iterator iter = mVisitors.iterator(); iter.hasNext(); ) {
        IDeepVisitor visitor = (IDeepVisitor) iter.next();
        Visitor v = visitor.getClassFileVisitor();
        aJavaClass.accept(v);
    }
}
Also used : Visitor(org.apache.bcel.classfile.Visitor) EmptyVisitor(org.apache.bcel.classfile.EmptyVisitor) Iterator(java.util.Iterator)

Example 3 with Visitor

use of org.apache.bcel.classfile.Visitor in project contribution by checkstyle.

the class VisitorSet method visitField.

/**
 * @see org.apache.bcel.classfile.Visitor
 */
public void visitField(Field aField) {
    for (Iterator iter = mVisitors.iterator(); iter.hasNext(); ) {
        IDeepVisitor visitor = (IDeepVisitor) iter.next();
        Visitor v = visitor.getClassFileVisitor();
        aField.accept(v);
    }
}
Also used : Visitor(org.apache.bcel.classfile.Visitor) EmptyVisitor(org.apache.bcel.classfile.EmptyVisitor) Iterator(java.util.Iterator)

Example 4 with Visitor

use of org.apache.bcel.classfile.Visitor in project contribution by checkstyle.

the class VisitorSet method visitMethod.

/**
 * @see org.apache.bcel.classfile.Visitor
 */
public void visitMethod(Method aMethod) {
    for (Iterator iter = mVisitors.iterator(); iter.hasNext(); ) {
        IDeepVisitor visitor = (IDeepVisitor) iter.next();
        Visitor v = visitor.getClassFileVisitor();
        aMethod.accept(v);
    }
}
Also used : Visitor(org.apache.bcel.classfile.Visitor) EmptyVisitor(org.apache.bcel.classfile.EmptyVisitor) Iterator(java.util.Iterator)

Example 5 with Visitor

use of org.apache.bcel.classfile.Visitor in project contribution by checkstyle.

the class VisitorSet method visitConstantPool.

/**
 * @see org.apache.bcel.classfile.Visitor
 */
public void visitConstantPool(ConstantPool aConstantPool) {
    for (Iterator iter = mVisitors.iterator(); iter.hasNext(); ) {
        IDeepVisitor visitor = (IDeepVisitor) iter.next();
        Visitor v = visitor.getClassFileVisitor();
        aConstantPool.accept(v);
    }
}
Also used : Visitor(org.apache.bcel.classfile.Visitor) EmptyVisitor(org.apache.bcel.classfile.EmptyVisitor) Iterator(java.util.Iterator)

Aggregations

Iterator (java.util.Iterator)6 EmptyVisitor (org.apache.bcel.classfile.EmptyVisitor)6 Visitor (org.apache.bcel.classfile.Visitor)6 InstructionHandle (org.apache.bcel.generic.InstructionHandle)1 InstructionList (org.apache.bcel.generic.InstructionList)1