public class HandlerDeclarationVisitor extends org.objectweb.asm.AnnotationVisitor
HandlerDeclaration
Modifier and Type | Field and Description |
---|---|
private DocumentBuilder |
builder |
private String |
m_value
XML accepted by the handler.
|
private Reporter |
reporter |
private ComponentWorkbench |
workbench |
Constructor and Description |
---|
HandlerDeclarationVisitor(ComponentWorkbench workbench,
DocumentBuilder builder,
Reporter reporter) |
Modifier and Type | Method and Description |
---|---|
private static Element |
convertDOMElements(Element xmlElement)
Converts recursively the given XML Element into an iPOJO Element.
|
private static void |
convertDOMElements(Element root,
Element xmlElement)
Converts recursively the given XML Element into an iPOJO Element.
|
private static Attribute |
transformAttribute(Attr attr) |
private static Element |
transformElement(Element xmlElement) |
void |
visit(String name,
Object value)
Parses the value attribute.
|
void |
visitEnd()
End of the visit.
|
private DocumentBuilder builder
private ComponentWorkbench workbench
public HandlerDeclarationVisitor(ComponentWorkbench workbench, DocumentBuilder builder, Reporter reporter)
public void visit(String name, Object value)
visit
in class org.objectweb.asm.AnnotationVisitor
name
- 'value'value
- the valueAnnotationVisitor.visit(java.lang.String, java.lang.Object)
public void visitEnd()
visitEnd
in class org.objectweb.asm.AnnotationVisitor
AnnotationVisitor.visitEnd()
private static Element convertDOMElements(Element xmlElement)
xmlElement
- DOM Element to be convertedprivate static void convertDOMElements(Element root, Element xmlElement)
root
- iPOJO root ElementxmlElement
- DOM Element to be convertedprivate static Attribute transformAttribute(Attr attr)
private static Element transformElement(Element xmlElement)
Copyright © 2014. All rights reserved.