Class AbstractBinaryXMLFileParser

java.lang.Object
soot.jimple.infoflow.android.axml.parsers.AbstractBinaryXMLFileParser
All Implemented Interfaces:
IBinaryXMLFileParser
Direct Known Subclasses:
AXML20Parser

public abstract class AbstractBinaryXMLFileParser extends Object implements IBinaryXMLFileParser
Abstract base class for all binary XML file parsers
Author:
Steven Arzt
  • Field Details

    • nodesWithTag

      protected HashMap<String,ArrayList<AXmlNode>> nodesWithTag
      Map containing lists of nodes sharing the same tag. The tag is the key to access the list.
    • document

      protected AXmlDocument document
      The xml document.
  • Constructor Details

    • AbstractBinaryXMLFileParser

      public AbstractBinaryXMLFileParser()
  • Method Details

    • addPointer

      protected void addPointer(String tag, AXmlNode node)
      Adds a pointer to the given node with the key tag.
      Parameters:
      tag - the node's tag
      node - the node being pointed to
    • getDocument

      public AXmlDocument getDocument()
      Description copied from interface: IBinaryXMLFileParser
      Returns the Android XML document.
      Specified by:
      getDocument in interface IBinaryXMLFileParser
      Returns:
      the Android XML document
    • getNodesWithTag

      public List<AXmlNode> getNodesWithTag(String tag)
      Description copied from interface: IBinaryXMLFileParser
      Returns a list containing all nodes of the xml document which have the given tag.
      Specified by:
      getNodesWithTag in interface IBinaryXMLFileParser
      Parameters:
      tag - the tag being search for
      Returns:
      list pointing on all nodes which have the given tag.