Search in sources :

Example 1 with MethodTraverser

use of com.jopdesign.common.graphutils.MethodTraverser in project jop by jop-devel.

the class PhaseExecutor method removeDebugAttributes.

public void removeDebugAttributes() {
    logger.info("Starting removal of debug attributes");
    MethodVisitor visitor = new MethodVisitor() {

        @Override
        public void visitMethod(MethodInfo method) {
            method.getCode().removeDebugAttributes();
        }
    };
    appInfo.iterate(new MethodTraverser(visitor, true));
    logger.info("Finished removal of debug attributes");
}
Also used : MethodTraverser(com.jopdesign.common.graphutils.MethodTraverser) MethodInfo(com.jopdesign.common.MethodInfo) MethodVisitor(com.jopdesign.common.graphutils.MethodTraverser.MethodVisitor)

Aggregations

MethodInfo (com.jopdesign.common.MethodInfo)1 MethodTraverser (com.jopdesign.common.graphutils.MethodTraverser)1 MethodVisitor (com.jopdesign.common.graphutils.MethodTraverser.MethodVisitor)1