|
|||||||||
| Home >> All >> org >> byteml >> [ serialize overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.byteml.serialize
Class ByteMLBuilder

java.lang.Objectorg.byteml.serialize.ByteMLBuilder
- All Implemented Interfaces:
- org.byteml.ByteMLConstants
- public class ByteMLBuilder
- extends java.lang.Object
- implements org.byteml.ByteMLConstants
- extends java.lang.Object
ByteML Builder class for building ByteML documents.
| Field Summary | |
private org.w3c.dom.Document |
doc
The XML document that comes as output. |
| Fields inherited from interface org.byteml.ByteMLConstants |
ATTR_CPOINTER, ATTR_INDEX, ATTR_INTCOUNT, ATTR_MAXLOCALS, ATTR_MAXSTACK, ATTR_NAME, ATTR_PTR1, ATTR_PTR2, ATTR_QUALIFIER, ATTR_SUPERCLASS, ATTR_TAG, ATTR_TARGET, ATTR_TYPE, ATTR_VALUE, ATTR_VERSION, BYTEML_AUTHOR, BYTEML_HOME, COMMENT_FIELDS, COMMENT_INTERFACES, COMMENT_METHODS, ELE_ARG, ELE_ARGS, ELE_BYTECODES, ELE_CASE, ELE_CLASSINFO, ELE_CP, ELE_CPENTRY, ELE_FIELD, ELE_FIELDS, ELE_INTERFACE, ELE_INTERFACES, ELE_METHOD, ELE_METHODINFO, ELE_METHODS, ELE_OPCODE, ROOT_NODE, TYPE_CLASS, TYPE_INTERFACE, VERSION |
| Constructor Summary | |
ByteMLBuilder()
|
|
| Method Summary | |
private void |
appendClassInfo(org.w3c.dom.Element rootNode,
jreversepro.reflect.JClassInfo info)
|
private void |
appendHeaderInfo(org.w3c.dom.Element rootNode)
Appends header information to this rootNode. |
private org.w3c.dom.Document |
createNewDocument()
Creates a new XML Document. |
private org.w3c.dom.Element |
getArgsNode(java.util.List args)
|
private org.w3c.dom.Element |
getBytecodesNode(jreversepro.reflect.JMethod method)
|
private org.w3c.dom.Element |
getConstantPoolNode(java.util.List entries)
|
private org.w3c.dom.Element |
getFieldsNode(java.util.List fields)
Appends the information of the fields. |
private org.w3c.dom.Element |
getInterfacesNode(java.util.List interfaces)
Appends the information of the interfaces. |
private org.w3c.dom.Element |
getMethodInfoNode(jreversepro.reflect.JMethod method)
|
private org.w3c.dom.Element |
getMethodsNode(java.util.List methods)
Appends the information of the fields. |
private org.w3c.dom.Element |
getRootElement(jreversepro.reflect.JClassInfo info)
Returns the element of the document. |
private java.lang.String |
getType(java.lang.String jvmType)
Method to convert JVM datatypes to Java language types. |
org.w3c.dom.Document |
parseClass(java.lang.String filename)
Parse the class file given as input and generate the XML Document class. |
static void |
transform(org.w3c.dom.Document doc,
java.io.OutputStream out)
Customer Transformer to tranform a XML Docuemnt to OutputStream using SAX Doc. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
doc
private org.w3c.dom.Document doc
- The XML document that comes as output.
| Constructor Detail |
ByteMLBuilder
public ByteMLBuilder()
| Method Detail |
transform
public static void transform(org.w3c.dom.Document doc, java.io.OutputStream out) throws java.io.IOException, ByteMLException
- Customer Transformer to tranform
a XML Docuemnt to
OutputStream using SAX Doc. Handlers.
parseClass
public org.w3c.dom.Document parseClass(java.lang.String filename) throws ByteMLException
- Parse the class file given as input and
generate the XML Document class.
createNewDocument
private org.w3c.dom.Document createNewDocument() throws ByteMLException
- Creates a new XML Document.
getRootElement
private org.w3c.dom.Element getRootElement(jreversepro.reflect.JClassInfo info) throws java.io.IOException
- Returns the element of the document.
appendHeaderInfo
private void appendHeaderInfo(org.w3c.dom.Element rootNode)
- Appends header information to this rootNode.
appendClassInfo
private void appendClassInfo(org.w3c.dom.Element rootNode, jreversepro.reflect.JClassInfo info) throws java.io.IOException
getInterfacesNode
private org.w3c.dom.Element getInterfacesNode(java.util.List interfaces)
- Appends the information of the interfaces.
getFieldsNode
private org.w3c.dom.Element getFieldsNode(java.util.List fields)
- Appends the information of the fields.
getMethodsNode
private org.w3c.dom.Element getMethodsNode(java.util.List methods) throws java.io.IOException
- Appends the information of the fields.
getArgsNode
private org.w3c.dom.Element getArgsNode(java.util.List args)
getMethodInfoNode
private org.w3c.dom.Element getMethodInfoNode(jreversepro.reflect.JMethod method)
getBytecodesNode
private org.w3c.dom.Element getBytecodesNode(jreversepro.reflect.JMethod method) throws jreversepro.revengine.RevEngineException, java.io.IOException
getType
private java.lang.String getType(java.lang.String jvmType)
- Method to convert JVM datatypes to Java language types.
getConstantPoolNode
private org.w3c.dom.Element getConstantPoolNode(java.util.List entries)
|
|||||||||
| Home >> All >> org >> byteml >> [ serialize overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.byteml.serialize.ByteMLBuilder