ppt4j 1.0
 
Loading...
Searching...
No Matches
ppt4j.analysis.patch.CrossMatcher Interface Reference

Public Member Functions

SourceType getKeyType ()
 
SourceType getValueType ()
 
boolean isMatched (int index)
 
double getScore (int index)
 
Pair< Integer, Integer > getMatchedRange (int index)
 
Features query (int index)
 

Static Public Member Functions

static CrossMatcher get (JavaExtractor k, Extractor v, boolean diffType)
 

Member Function Documentation

◆ get()

static CrossMatcher ppt4j.analysis.patch.CrossMatcher.get ( JavaExtractor k,
Extractor v,
boolean diffType )
static

Returns a CrossMatcher based on the JavaExtractor and Extractor provided, with the option to specify whether to consider different types.

Parameters
kthe JavaExtractor to use
vthe Extractor to use
diffTypea boolean indicating whether to consider different types
Returns
a CrossMatcher based on the JavaExtractor and Extractor provided
Exceptions
IllegalArgumentExceptionif the source type of Extractor v is not SourceType.BYTECODE

◆ getKeyType()

SourceType ppt4j.analysis.patch.CrossMatcher.getKeyType ( )

Returns the type of key used in the data source.

Returns
the type of key

◆ getMatchedRange()

Pair< Integer, Integer > ppt4j.analysis.patch.CrossMatcher.getMatchedRange ( int index)

This method returns a Pair containing the starting and ending index of a matched range based on the given index in a data structure.

Parameters
indexthe index to search for a matched range
Returns
a Pair containing the starting and ending index of the matched range

◆ getScore()

double ppt4j.analysis.patch.CrossMatcher.getScore ( int index)

This method retrieves the score at the specified index in the list of scores.

Parameters
indexthe index of the score to retrieve
Returns
the score at the specified index

◆ getValueType()

SourceType ppt4j.analysis.patch.CrossMatcher.getValueType ( )

Returns the source type of the value. This method is responsible for retrieving the source type of the value.

Returns
the source type of the value

◆ isMatched()

boolean ppt4j.analysis.patch.CrossMatcher.isMatched ( int index)

Checks if the given index is matched with a specific condition.

Parameters
indexthe index to be checked
Returns
true if the index is matched, false otherwise

◆ query()

Features ppt4j.analysis.patch.CrossMatcher.query ( int index)

Retrieves the features at the specified index in the query results.

Parameters
indexthe index of the features to retrieve
Returns
the features at the specified index

The documentation for this interface was generated from the following file: