Class AbstractBinaryXMLFileParser
java.lang.Object
soot.jimple.infoflow.android.axml.parsers.AbstractBinaryXMLFileParser
- All Implemented Interfaces:
IBinaryXMLFileParser
- Direct Known Subclasses:
AXML20Parser
Abstract base class for all binary XML file parsers
- Author:
- Steven Arzt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AXmlDocumentThe xml document.Map containing lists of nodes sharing the sametag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddPointer(String tag, AXmlNode node) Adds a pointer to the givennodewith the keytag.Returns the Android XML document.getNodesWithTag(String tag) Returns a list containing all nodes of the xml document which have the given tag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.android.axml.parsers.IBinaryXMLFileParser
parseFile
-
Field Details
-
nodesWithTag
Map containing lists of nodes sharing the sametag. Thetagis the key to access the list. -
document
The xml document.
-
-
Constructor Details
-
AbstractBinaryXMLFileParser
public AbstractBinaryXMLFileParser()
-
-
Method Details
-
addPointer
Adds a pointer to the givennodewith the keytag.- Parameters:
tag- the node's tagnode- the node being pointed to
-
getDocument
Description copied from interface:IBinaryXMLFileParserReturns the Android XML document.- Specified by:
getDocumentin interfaceIBinaryXMLFileParser- Returns:
- the Android XML document
-
getNodesWithTag
Description copied from interface:IBinaryXMLFileParserReturns a list containing all nodes of the xml document which have the given tag.- Specified by:
getNodesWithTagin interfaceIBinaryXMLFileParser- Parameters:
tag- the tag being search for- Returns:
- list pointing on all nodes which have the given tag.
-