Class DEquationMatcher
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.ir.compiler.DEquationMatcher
A matcher can be used to check if two IR expressions match two provided templates.
-
Constructor Summary
ConstructorsConstructorDescriptionDEquationMatcher(IDMethodContext ctx, INode t0, INode t1) Create an equation matcher. -
Method Summary
Modifier and TypeMethodDescriptionUpon a successful match, retrieve the map of matches.booleanisMatch(IDExpression e0, IDExpression e1) Determine whether the provided IR expressions match the templates
-
Constructor Details
-
DEquationMatcher
Create an equation matcher.- Parameters:
ctx- method contextt0- first templatet1- second template
-
-
Method Details
-
getMatchMap
Upon a successful match, retrieve the map of matches.- Returns:
- template node id to matching IR object
-
isMatch
Determine whether the provided IR expressions match the templates- Parameters:
e0- first IRe1- second IR- Returns:
- true if e0 matches t0 and e1 matches t1, or if e0 matches t1 and e1 matches t0
-