Inherits Peach::analyzer::Analyzer.
Public Member Functions | |
def | __init__ |
Constructor of PPRelationFinder. | |
def | containsValue |
Checks whether the source string contains any of specified values. | |
def | findRelatedElement |
Tries to find an element related to the actual element(matching size). | |
def | getRelatedElement |
Tries to return an element related to the actual element, if it exists. | |
def | findRelInElement |
Tries to find any relations in the actual element and its subelements. | |
def | findRelations |
Tries to find any relations in the whole datamodel. | |
Private Attributes | |
_relationValues |
This class represents an analyzer of relations between different fields in the dissected data structure.
def Peach::Analyzers::pprelations::PPRelationFinder::__init__ | ( | self | ) |
def Peach::Analyzers::pprelations::PPRelationFinder::containsValue | ( | self, | ||
mystr, | ||||
values | ||||
) |
Checks whether the source string contains any of specified values.
self | object pointer | |
mystr | source string | |
values | list of values for which we are looking |
def Peach::Analyzers::pprelations::PPRelationFinder::findRelatedElement | ( | self, | ||
recElement, | ||||
callingChild, | ||||
findSize | ||||
) |
Tries to find an element related to the actual element(matching size).
self | object pointer | |
recElement | the element we try to match with the actual element | |
callingChild | the child element that calle this function | |
findSize | value of the size we are looking for |
def Peach::Analyzers::pprelations::PPRelationFinder::findRelations | ( | self, | ||
myDataModel | ||||
) |
Tries to find any relations in the whole datamodel.
self | object pointer | |
myDataModel | the data model in which we are looking for relations |
def Peach::Analyzers::pprelations::PPRelationFinder::findRelInElement | ( | self, | ||
recElement | ||||
) |
Tries to find any relations in the actual element and its subelements.
self | object pointer | |
recElement | the actual element |
def Peach::Analyzers::pprelations::PPRelationFinder::getRelatedElement | ( | self, | ||
recElement | ||||
) |
Tries to return an element related to the actual element, if it exists.
self | object pointer | |
recElement | the element we try to match with the actual element |