@Override public void visitCode(Code obj) { code = obj; super.visitCode(obj); CodeException[] exceptions = obj.getExceptionTable(); for (CodeException exception : exceptions) { exception.accept(this); } Attribute[] attributes = obj.getAttributes(); for (Attribute attribute : attributes) { attribute.accept(this); } visitAfter(obj); code = null; }
public void visitCodeException(CodeException ce) { stack.push(ce); ce.accept(visitor); stack.pop(); }
@Override public void visitCodeException(final CodeException ce) { stack.push(ce); ce.accept(visitor); stack.pop(); }
public void visitCode(Code code) { stack.push(code); code.accept(visitor); CodeException[] table = code.getExceptionTable(); for(int i=0; i < table.length; i++) table[i].accept(this); Attribute[] attributes = code.getAttributes(); for(int i=0; i < attributes.length; i++) attributes[i].accept(this); stack.pop(); }
@Override public void visitCode(final Code code) { stack.push(code); code.accept(visitor); final CodeException[] table = code.getExceptionTable(); for (final CodeException element : table) { element.accept(this); } final Attribute[] attributes = code.getAttributes(); for (final Attribute attribute : attributes) { attribute.accept(this); } stack.pop(); }
@Override public void visitCode(Code obj) { code = obj; super.visitCode(obj); CodeException[] exceptions = obj.getExceptionTable(); for (CodeException exception : exceptions) { exception.accept(this); } Attribute[] attributes = obj.getAttributes(); for (Attribute attribute : attributes) { attribute.accept(this); } visitAfter(obj); code = null; }