Commit a795ecd9 authored by Eric Bruneton's avatar Eric Bruneton

Merge branch 'delete-xml-package' into 'master'

Delete the xml package. Since we don't update it anymore (for instance, we…

See merge request !211
parents 32c9d4a0 b079e534
Pipeline #2820 passed with stage
in 6 minutes and 33 seconds
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package org.objectweb.asm.xml;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;
/**
* SAXAdapter
*
* @deprecated This class is no longer maintained, will not support new Java features, and will
* eventually be deleted. Use the asm or asm.tree API instead.
* @author Eugene Kuleshov
*/
@Deprecated
public class SAXAdapter {
private final ContentHandler h;
protected SAXAdapter(final ContentHandler h) {
this.h = h;
}
protected ContentHandler getContentHandler() {
return h;
}
protected void addDocumentStart() {
try {
h.startDocument();
} catch (SAXException ex) {
throw new RuntimeException(ex.getMessage(), ex.getException());
}
}
protected void addDocumentEnd() {
try {
h.endDocument();
} catch (SAXException ex) {
throw new RuntimeException(ex.getMessage(), ex.getException());
}
}
protected final void addStart(final String name, final Attributes attrs) {
try {
h.startElement("", name, name, attrs);
} catch (SAXException ex) {
throw new RuntimeException(ex.getMessage(), ex.getException());
}
}
protected final void addEnd(final String name) {
try {
h.endElement("", name, name);
} catch (SAXException ex) {
throw new RuntimeException(ex.getMessage(), ex.getException());
}
}
protected final void addElement(final String name, final Attributes attrs) {
addStart(name, attrs);
addEnd(name);
}
}
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package org.objectweb.asm.xml;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.TypePath;
import org.xml.sax.helpers.AttributesImpl;
/**
* SAXAnnotationAdapter
*
* @deprecated This class is no longer maintained, will not support new Java features, and will
* eventually be deleted. Use the asm or asm.tree API instead.
* @author Eugene Kuleshov
*/
@Deprecated
public final class SAXAnnotationAdapter extends AnnotationVisitor {
SAXAdapter sa;
private final String elementName;
public SAXAnnotationAdapter(
final SAXAdapter sa,
final String elementName,
final int visible,
final String name,
final String desc) {
this(Opcodes.ASM6, sa, elementName, visible, desc, name, -1, -1, null, null, null, null);
}
public SAXAnnotationAdapter(
final SAXAdapter sa,
final String elementName,
final int visible,
final int parameter,
final String desc) {
this(Opcodes.ASM6, sa, elementName, visible, desc, null, parameter, -1, null, null, null, null);
}
public SAXAnnotationAdapter(
final SAXAdapter sa,
final String elementName,
final int visible,
final String name,
final String desc,
final int typeRef,
final TypePath typePath) {
this(
Opcodes.ASM6,
sa,
elementName,
visible,
desc,
name,
-1,
typeRef,
typePath,
null,
null,
null);
}
public SAXAnnotationAdapter(
final SAXAdapter sa,
final String elementName,
final int visible,
final String name,
final String desc,
int typeRef,
TypePath typePath,
final String[] start,
final String[] end,
final int[] index) {
this(
Opcodes.ASM6,
sa,
elementName,
visible,
desc,
name,
-1,
typeRef,
typePath,
start,
end,
index);
}
protected SAXAnnotationAdapter(
final int api,
final SAXAdapter sa,
final String elementName,
final int visible,
final String desc,
final String name,
final int parameter) {
this(api, sa, elementName, visible, desc, name, parameter, -1, null, null, null, null);
}
protected SAXAnnotationAdapter(
final int api,
final SAXAdapter sa,
final String elementName,
final int visible,
final String desc,
final String name,
final int parameter,
final int typeRef,
final TypePath typePath,
final String[] start,
final String[] end,
final int[] index) {
super(api);
this.sa = sa;
this.elementName = elementName;
AttributesImpl att = new AttributesImpl();
if (name != null) {
att.addAttribute("", "name", "name", "", name);
}
if (visible != 0) {
att.addAttribute("", "visible", "visible", "", visible > 0 ? "true" : "false");
}
if (parameter != -1) {
att.addAttribute("", "parameter", "parameter", "", Integer.toString(parameter));
}
if (desc != null) {
att.addAttribute("", "desc", "desc", "", desc);
}
if (typeRef != -1) {
att.addAttribute("", "typeRef", "typeRef", "", Integer.toString(typeRef));
}
if (typePath != null) {
att.addAttribute("", "typePath", "typePath", "", typePath.toString());
}
if (start != null) {
StringBuilder value = new StringBuilder(start[0]);
for (int i = 1; i < start.length; ++i) {
value.append(" ").append(start[i]);
}
att.addAttribute("", "start", "start", "", value.toString());
}
if (end != null) {
StringBuilder value = new StringBuilder(end[0]);
for (int i = 1; i < end.length; ++i) {
value.append(" ").append(end[i]);
}
att.addAttribute("", "end", "end", "", value.toString());
}
if (index != null) {
StringBuilder value = new StringBuilder();
value.append(index[0]);
for (int i = 1; i < index.length; ++i) {
value.append(" ").append(index[i]);
}
att.addAttribute("", "index", "index", "", value.toString());
}
sa.addStart(elementName, att);
}
@Override
public void visit(final String name, final Object value) {
Class<?> c = value.getClass();
if (c.isArray()) {
AnnotationVisitor av = visitArray(name);
if (value instanceof byte[]) {
byte[] b = (byte[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof char[]) {
char[] b = (char[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof short[]) {
short[] b = (short[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof boolean[]) {
boolean[] b = (boolean[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, Boolean.valueOf(b[i]));
}
} else if (value instanceof int[]) {
int[] b = (int[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof long[]) {
long[] b = (long[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof float[]) {
float[] b = (float[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
} else if (value instanceof double[]) {
double[] b = (double[]) value;
for (int i = 0; i < b.length; i++) {
av.visit(null, b[i]);
}
}
av.visitEnd();
} else {
addValueElement("annotationValue", name, Type.getDescriptor(c), value.toString());
}
}
@Override
public void visitEnum(final String name, final String desc, final String value) {
addValueElement("annotationValueEnum", name, desc, value);
}
@Override
public AnnotationVisitor visitAnnotation(final String name, final String desc) {
return new SAXAnnotationAdapter(sa, "annotationValueAnnotation", 0, name, desc);
}
@Override
public AnnotationVisitor visitArray(final String name) {
return new SAXAnnotationAdapter(sa, "annotationValueArray", 0, name, null);
}
@Override
public void visitEnd() {
sa.addEnd(elementName);
}
private void addValueElement(
final String element, final String name, final String desc, final String value) {
AttributesImpl att = new AttributesImpl();
if (name != null) {
att.addAttribute("", "name", "name", "", name);
}
if (desc != null) {
att.addAttribute("", "desc", "desc", "", desc);
}
if (value != null) {
att.addAttribute("", "value", "value", "", SAXClassAdapter.encode(value));
}
sa.addElement(element, att);
}
}
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package org.objectweb.asm.xml;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.TypePath;
import org.xml.sax.Attributes;
/**
* SAXFieldAdapter
*
* @deprecated This class is no longer maintained, will not support new Java features, and will
* eventually be deleted. Use the asm or asm.tree API instead.
* @author Eugene Kuleshov
*/
@Deprecated
public final class SAXFieldAdapter extends FieldVisitor {
SAXAdapter sa;
public SAXFieldAdapter(final SAXAdapter sa, final Attributes att) {
super(Opcodes.ASM6);
this.sa = sa;
sa.addStart("field", att);
}
@Override
public AnnotationVisitor visitAnnotation(final String desc, final boolean visible) {
return new SAXAnnotationAdapter(sa, "annotation", visible ? 1 : -1, null, desc);
}
@Override
public AnnotationVisitor visitTypeAnnotation(
int typeRef, TypePath typePath, String desc, boolean visible) {
return new SAXAnnotationAdapter(
sa, "typeAnnotation", visible ? 1 : -1, null, desc, typeRef, typePath);
}
@Override
public void visitEnd() {
sa.addEnd("field");
}
}
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package org.objectweb.asm.xml;
import org.objectweb.asm.ModuleVisitor;
import org.objectweb.asm.Opcodes;
import org.xml.sax.helpers.AttributesImpl;
/**
* Generate SAX event for a module description.
*
* @deprecated This class is no longer maintained, will not support new Java features, and will
* eventually be deleted. Use the asm or asm.tree API instead.
* @author Remi Forax
*/
@Deprecated
public final class SAXModuleAdapter extends ModuleVisitor {
private final SAXAdapter sa;
public SAXModuleAdapter(final SAXAdapter sa) {
super(Opcodes.ASM6);
this.sa = sa;
}
@Override
public void visitMainClass(String mainClass) {
AttributesImpl att = new AttributesImpl();
att.addAttribute("", "name", "name", "", mainClass);
sa.addElement("main-class", att);
}
@Override
public void visitPackage(String packaze) {
AttributesImpl att = new AttributesImpl();
att.addAttribute("", "name", "name", "", packaze);
sa.addElement("packages", att);
}
@Override
public void visitRequire(String module, int access, String version) {
AttributesImpl att = new AttributesImpl();
StringBuilder sb = new StringBuilder();
SAXClassAdapter.appendAccess(access | SAXClassAdapter.ACCESS_MODULE, sb);
att.addAttribute("", "module", "module", "", module);
att.addAttribute("", "access", "access", "", sb.toString());
if (version != null) {
att.addAttribute("", "version", "version", "", version);
}
sa.addElement("requires", att);
}
@Override
public void visitExport(String packaze, int access, String... modules) {
AttributesImpl att = new AttributesImpl();
StringBuilder sb = new StringBuilder();
SAXClassAdapter.appendAccess(access | SAXClassAdapter.ACCESS_MODULE, sb);
att.addAttribute("", "name", "name", "", packaze);
att.addAttribute("", "access", "access", "", sb.toString());
sa.addStart("exports", att);
if (modules != null && modules.length > 0) {
for (String to : modules) {
AttributesImpl atts = new AttributesImpl();
atts.addAttribute("", "module", "module", "", to);
sa.addElement("to", atts);
}
}
sa.addEnd("exports");
}
@Override
public void visitOpen(String packaze, int access, String... modules) {
AttributesImpl att = new AttributesImpl();
StringBuilder sb = new StringBuilder();
SAXClassAdapter.appendAccess(access | SAXClassAdapter.ACCESS_MODULE, sb);
att.addAttribute("", "name", "name", "", packaze);
att.addAttribute("", "access", "access", "", sb.toString());
sa.addStart("opens", att);
if (modules != null && modules.length > 0) {
for (String to : modules) {
AttributesImpl atts = new AttributesImpl();
atts.addAttribute("", "module", "module", "", to);
sa.addElement("to", atts);
}
}
sa.addEnd("opens");
}
@Override
public void visitUse(String service) {
AttributesImpl att = new AttributesImpl();
att.addAttribute("", "service", "service", "", service);
sa.addElement("uses", att);
}
@Override
public void visitProvide(String service, String... providers) {
AttributesImpl att = new AttributesImpl();
att.addAttribute("", "service", "service", "", service);
sa.addStart("provides", att);
for (String provider : providers) {
AttributesImpl atts = new AttributesImpl();
atts.addAttribute("", "provider", "provider", "", provider);
sa.addElement("with", atts);
}
sa.addEnd("provides");
}
@Override
public void visitEnd() {
sa.addEnd("module");
}
}
<html>
<!--
* ASM XML Adapter
* Copyright (c) 2004-2011, Eugene Kuleshov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the copyright holders nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
-->
<body>
DEPRECATED. Use the core or the tree API instead.
</body>
</html>
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
// 3. Neither the name of the copyright holders nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
package org.objectweb.asm.xml;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.TypePath;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
/**
* ASMContentHandler unit tests
*
* @author Eric Bruneton
*/
public class ASMContentHandlerTest implements Opcodes {