Class AbstractXMLSourceSinkParser.SAXHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
soot.jimple.infoflow.android.source.parsers.xml.AbstractXMLSourceSinkParser.SAXHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Enclosing class:
AbstractXMLSourceSinkParser

protected class AbstractXMLSourceSinkParser.SAXHandler extends DefaultHandler
Handler class for the XML parser
Author:
Anna-Katharina Wickert, Joern Tillmans, Steven Arzt
  • Field Details

  • Constructor Details

  • Method Details

    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      Event Handler for the starting element for SAX. Possible start elements for filling AndroidMethod objects with the new data format: - method: Setting parsingvalues to false or null and get and set the signature and category, - accessPath: To get the information whether the AndroidMethod is a sink or source, - and the other elements doesn't care for creating the AndroidMethod object. At these element we will look, if calling the method getAccessPath (using an new SAX Handler)
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
      Throws:
      SAXException
    • handleStarttagCategory

      protected void handleStarttagCategory(Attributes attributes)
    • handleStarttagField

      protected void handleStarttagField(Attributes attributes)
    • handleStarttagMeethod

      protected void handleStarttagMeethod(Attributes attributes)
    • handleStarttagAccesspath

      protected void handleStarttagAccesspath(Attributes attributes)
    • handleStarttagParam

      protected void handleStarttagParam(Attributes attributes, String qNameLower)
    • handleStarttagPathelement

      protected void handleStarttagPathelement(Attributes attributes)
    • handleStarttagSignatureOnPath

      protected void handleStarttagSignatureOnPath(Attributes attributes)
    • handleStarttagClassNameOnPath

      protected void handleStarttagClassNameOnPath(Attributes attributes)
    • handleStarttagExcludeClassName

      protected void handleStarttagExcludeClassName(Attributes attributes)
    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      PathElement is the only element having values inside, so nothing to do here. Doesn't care at the current state of parsing.
      Specified by:
      characters in interface ContentHandler
      Overrides:
      characters in class DefaultHandler
      Throws:
      SAXException
    • endElement

      public void endElement(String uri, String localName, String qName) throws SAXException
      EventHandler for the End of an element. Putting the values into the objects. For additional information: startElement description. Starting with the innerst elements and switching up to the outer elements - pathElement -> means field sensitive, adding SootFields
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class DefaultHandler
      Throws:
      SAXException
    • handleEndtagMethod

      protected void handleEndtagMethod()
    • handleEndtagField

      protected void handleEndtagField()
    • handleEndtagAccesspath

      protected void handleEndtagAccesspath()