Java Code Examples for xmlkit.XMLKit.Element#addAll()
The following examples show how to use
xmlkit.XMLKit.Element#addAll() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: jdk8u_jdk File: ClassReader.java License: GNU General Public License v2.0 | 6 votes |
private void attachTo(Element x, Object aval0) { if (aval0 == null) { return; } if (!(aval0 instanceof Element)) { x.add(aval0); return; } Element aval = (Element) aval0; if (!aval.isAnonymous()) { x.add(aval); return; } for (int imax = aval.attrSize(), i = 0; i < imax; i++) { //%% attachAttrTo(x, aval.getAttrName(i), aval.getAttr(i)); } x.addAll(aval); }
Example 2
Source Project: openjdk-jdk8u-backup File: ClassReader.java License: GNU General Public License v2.0 | 6 votes |
private void attachTo(Element x, Object aval0) { if (aval0 == null) { return; } if (!(aval0 instanceof Element)) { x.add(aval0); return; } Element aval = (Element) aval0; if (!aval.isAnonymous()) { x.add(aval); return; } for (int imax = aval.attrSize(), i = 0; i < imax; i++) { //%% attachAttrTo(x, aval.getAttrName(i), aval.getAttr(i)); } x.addAll(aval); }
Example 3
Source Project: TencentKona-8 File: ClassReader.java License: GNU General Public License v2.0 | 6 votes |
private void attachTo(Element x, Object aval0) { if (aval0 == null) { return; } if (!(aval0 instanceof Element)) { x.add(aval0); return; } Element aval = (Element) aval0; if (!aval.isAnonymous()) { x.add(aval); return; } for (int imax = aval.attrSize(), i = 0; i < imax; i++) { //%% attachAttrTo(x, aval.getAttrName(i), aval.getAttr(i)); } x.addAll(aval); }
Example 4
Source Project: hottub File: ClassReader.java License: GNU General Public License v2.0 | 6 votes |
private void attachTo(Element x, Object aval0) { if (aval0 == null) { return; } if (!(aval0 instanceof Element)) { x.add(aval0); return; } Element aval = (Element) aval0; if (!aval.isAnonymous()) { x.add(aval); return; } for (int imax = aval.attrSize(), i = 0; i < imax; i++) { //%% attachAttrTo(x, aval.getAttrName(i), aval.getAttr(i)); } x.addAll(aval); }
Example 5
Source Project: jdk8u-dev-jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame_extended(same_locals_1_stack_item_frame_extended s, Void p) { Element e = new Element("SameLocals1StackItemFrameExtended"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 6
Source Project: openjdk-8 File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame_extended(same_locals_1_stack_item_frame_extended s, Void p) { Element e = new Element("SameLocals1StackItemFrameExtended"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 7
Source Project: openjdk-8-source File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_append_frame(append_frame a, Void p) { Element e = new Element("AppendFrame" + (a.frame_type - 251)); e.setAttr("tag", "" + a.frame_type); e.addAll(getVerificationTypeInfo("Local", a.locals)); e.trimToSize(); return e; }
Example 8
Source Project: hottub File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_full_frame(full_frame fl_frm, Void p) { Element e = new Element("FullFrame"); e.setAttr("tag", "" + fl_frm.frame_type); e.addAll(getVerificationTypeInfo("Local", fl_frm.locals)); e.trimToSize(); return e; }
Example 9
Source Project: jdk8u-jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_append_frame(append_frame a, Void p) { Element e = new Element("AppendFrame" + (a.frame_type - 251)); e.setAttr("tag", "" + a.frame_type); e.addAll(getVerificationTypeInfo("Local", a.locals)); e.trimToSize(); return e; }
Example 10
Source Project: jdk8u_jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_append_frame(append_frame a, Void p) { Element e = new Element("AppendFrame" + (a.frame_type - 251)); e.setAttr("tag", "" + a.frame_type); e.addAll(getVerificationTypeInfo("Local", a.locals)); e.trimToSize(); return e; }
Example 11
Source Project: openjdk-jdk9 File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame(same_locals_1_stack_item_frame s, Void p) { Element e = new Element("SameLocals1StackItemFrame"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 12
Source Project: openjdk-jdk8u-backup File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
protected void readAttributesFor(ClassFile c, Attributes attrs, Element x) { Element container = new Element(); AttributeVisitor av = new AttributeVisitor(this, c); for (Attribute a : attrs) { av.visit(a, container); } if (!keepOrder) { container.sort(); } x.addAll(container); }
Example 13
Source Project: openjdk-jdk8u File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_full_frame(full_frame fl_frm, Void p) { Element e = new Element("FullFrame"); e.setAttr("tag", "" + fl_frm.frame_type); e.addAll(getVerificationTypeInfo("Local", fl_frm.locals)); e.trimToSize(); return e; }
Example 14
Source Project: openjdk-jdk8u-backup File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame(same_locals_1_stack_item_frame s, Void p) { Element e = new Element("SameLocals1StackItemFrame"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 15
Source Project: jdk8u-jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame_extended(same_locals_1_stack_item_frame_extended s, Void p) { Element e = new Element("SameLocals1StackItemFrameExtended"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 16
Source Project: jdk8u60 File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_same_locals_1_stack_item_frame(same_locals_1_stack_item_frame s, Void p) { Element e = new Element("SameLocals1StackItemFrame"); e.setAttr("tag", "" + s.frame_type); e.addAll(getVerificationTypeInfo("Stack", s.stack)); e.trimToSize(); return e; }
Example 17
Source Project: jdk8u-jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_append_frame(append_frame a, Void p) { Element e = new Element("AppendFrame" + (a.frame_type - 251)); e.setAttr("tag", "" + a.frame_type); e.addAll(getVerificationTypeInfo("Local", a.locals)); e.trimToSize(); return e; }
Example 18
Source Project: jdk8u_jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_full_frame(full_frame fl_frm, Void p) { Element e = new Element("FullFrame"); e.setAttr("tag", "" + fl_frm.frame_type); e.addAll(getVerificationTypeInfo("Local", fl_frm.locals)); e.trimToSize(); return e; }
Example 19
Source Project: jdk8u60 File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
@Override public Element visit_full_frame(full_frame fl_frm, Void p) { Element e = new Element("FullFrame"); e.setAttr("tag", "" + fl_frm.frame_type); e.addAll(getVerificationTypeInfo("Local", fl_frm.locals)); e.trimToSize(); return e; }
Example 20
Source Project: jdk8u-jdk File: ClassReader.java License: GNU General Public License v2.0 | 5 votes |
protected void readAttributesFor(ClassFile c, Attributes attrs, Element x) { Element container = new Element(); AttributeVisitor av = new AttributeVisitor(this, c); for (Attribute a : attrs) { av.visit(a, container); } if (!keepOrder) { container.sort(); } x.addAll(container); }