public class MethodNameFilter extends Object
ConstructId is part of the application, a library and
whether it is blacklisted. The method is used when searching for touch points.| Modifier and Type | Method and Description |
|---|---|
static MethodNameFilter |
getInstance()
If there is a MethodNameFilter instance available it will return it,
otherwise instantiate it and then return
|
boolean |
isAnAppMethod(Set<com.sap.psr.vulas.shared.json.model.ConstructId> app_entries,
String value)
Check if the argument is a string representing a method of my application
(meaning not of an external library).
|
boolean |
isBlackListed(String value)
Check if the argument is a string contained in the list of the blacklisted
methods
|
boolean |
isLibraryMethod(Set<com.sap.psr.vulas.shared.json.model.ConstructId> app_entries,
String value)
Check if the argument is a string representing a method of an external library
(meaning not of my application).
|
public static MethodNameFilter getInstance()
public boolean isBlackListed(String value)
value - a string representing the complete name of a methodpublic boolean isLibraryMethod(Set<com.sap.psr.vulas.shared.json.model.ConstructId> app_entries, String value)
app_entries - Entry methods that we used to define the app domain. Use BackendConnector.getAppConstructIds(com.sap.psr.vulas.goals.GoalContext, com.sap.psr.vulas.shared.json.model.Application) to get them.value - a string representing the complete name of a methodpublic boolean isAnAppMethod(Set<com.sap.psr.vulas.shared.json.model.ConstructId> app_entries, String value)
app_entries - Entry methods that we used to define the app domain. Use BackendConnector.getAppConstructIds(com.sap.psr.vulas.goals.GoalContext, com.sap.psr.vulas.shared.json.model.Application) to get them.value - a string representing the complete name of a methodCopyright © 2018–2020. All rights reserved.