Class MethodMatch
java.lang.Object
com.pnfsoftware.jeb.core.units.code.MethodMatch
A method match, that can be attached to a
ICodeMethod object, usually via its manager.
Example: for dex unit, use IDexUnit.setMethodMatch().
-
Constructor Summary
ConstructorsConstructorDescriptionMethodMatch(String address, float score, int collId, String filetag, long creationtime) Create a method match. -
Method Summary
Modifier and TypeMethodDescriptionGet the method or routine address.intGet the collection id.longGet the creation time.Retrieve a piece of data manually attached to this match object viaputData(String, Object).Get the optional source tag.doublegetScore()Get the similarity score.Attach a non-null piece of transient data to this match object.toString()
-
Constructor Details
-
MethodMatch
Create a method match.- Parameters:
address- method or routine addressscore- similarity scorecollId- collection idfiletag- optional source tagcreationtime- creation time in milliseconds since the unix epoch
-
-
Method Details
-
getAddress
Get the method or routine address.- Returns:
- the method or routine address
-
getScore
public double getScore()Get the similarity score.- Returns:
- similarity score from 0.0 (worst) to 1.0 (best) between this signature and the target method it is applied to
-
getCollectionId
public int getCollectionId()Get the collection id.- Returns:
- collection id (reserved ids: 0=anonymous collection/no collection; 1=user collection)
-
getFileTag
Get the optional source tag.- Returns:
- optional tag indicating where the signature comes from (usually a file name); may be null
-
getCreationTime
public long getCreationTime()Get the creation time.- Returns:
- the unix timestamp (in ms) specifying the creation time of the signature
-
putData
Attach a non-null piece of transient data to this match object.- Parameters:
key- non-null keyvalue- value to be attached, null to remove the entry- Returns:
- previous value or null if none existed
-
getData
Retrieve a piece of data manually attached to this match object viaputData(String, Object).- Parameters:
key- non-null key- Returns:
- value or null
-
toString
-