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
Handler class for the XML parser
- Author:
- Anna-Katharina Wickert, Joern Tillmans, Steven Arzt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Set<AccessPathTuple>protected MethodSourceSinkDefinition.CallTypeprotected ISourceSinkCategoryprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected List<Set<AccessPathTuple>>protected intprotected Set<AccessPathTuple> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) PathElement is the only element having values inside, so nothing to do here.voidendElement(String uri, String localName, String qName) EventHandler for the End of an element.protected voidprotected voidprotected voidprotected voidhandleStarttagAccesspath(Attributes attributes) protected voidhandleStarttagCategory(Attributes attributes) protected voidhandleStarttagClassNameOnPath(Attributes attributes) protected voidhandleStarttagExcludeClassName(Attributes attributes) protected voidhandleStarttagField(Attributes attributes) protected voidhandleStarttagMeethod(Attributes attributes) protected voidhandleStarttagParam(Attributes attributes, String qNameLower) protected voidhandleStarttagPathelement(Attributes attributes) protected voidhandleStarttagSignatureOnPath(Attributes attributes) voidstartElement(String uri, String localName, String qName, Attributes attributes) Event Handler for the starting element for SAX.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
methodSignature
-
fieldSignature
-
category
-
isSource
protected boolean isSource -
isSink
protected boolean isSink -
pathElements
-
pathElementTypes
-
paramIndex
protected int paramIndex -
paramTypes
-
callType
-
accessPathParentElement
-
description
-
baseAPs
-
paramAPs
-
returnAPs
-
categoryFilter
-
-
Constructor Details
-
SAXHandler
public SAXHandler() -
SAXHandler
-
-
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:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
handleStarttagCategory
-
handleStarttagField
-
handleStarttagMeethod
-
handleStarttagAccesspath
-
handleStarttagParam
-
handleStarttagPathelement
-
handleStarttagSignatureOnPath
-
handleStarttagClassNameOnPath
-
handleStarttagExcludeClassName
-
characters
PathElement is the only element having values inside, so nothing to do here. Doesn't care at the current state of parsing.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
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:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
handleEndtagMethod
protected void handleEndtagMethod() -
handleEndtagField
protected void handleEndtagField() -
handleEndtagAccesspath
protected void handleEndtagAccesspath()
-