use of org.apache.bcel.generic.LineNumberGen in project jop by jop-devel.
the class DescendingClassTraverser method visitMethodCode.
public void visitMethodCode(MethodInfo methodInfo) {
if (methodInfo.hasCode()) {
bcelVisitor.setCode(true);
MethodCode code = methodInfo.getCode();
visitor.visitMethodCode(code);
for (CodeExceptionGen ex : code.getExceptionHandlers()) {
visitor.visitCodeException(methodInfo, ex);
}
for (LineNumberGen lng : code.getLineNumbers()) {
visitor.visitLineNumber(methodInfo, lng);
}
for (LocalVariableGen lvg : code.getLocalVariables()) {
visitor.visitLocalVariable(methodInfo, lvg);
}
visitAttributes(code.getAttributes());
bcelVisitor.setCode(false);
}
}
Aggregations