Package edu.umd.cs.findbugs.detect
Class BuildStringPassthruGraph.StringPassthruDatabase
java.lang.Object
edu.umd.cs.findbugs.detect.BuildStringPassthruGraph.StringPassthruDatabase
- Enclosing class:
BuildStringPassthruGraph
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List
<MethodDescriptor> private final Map
<BuildStringPassthruGraph.MethodParameter, Set<BuildStringPassthruGraph.MethodParameter>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Adds edge to the string passthru graph(package private) Set
<BuildStringPassthruGraph.MethodParameter> Map
<MethodDescriptor, int[]> Returns methods which call directly or indirectly methods from inputs passing the parameter unchangedMap
<MethodDescriptor, int[]> Returns methods which parameter is the file name
-
Field Details
-
FILENAME_STRING_METHODS
-
graph
private final Map<BuildStringPassthruGraph.MethodParameter,Set<BuildStringPassthruGraph.MethodParameter>> graph
-
-
Constructor Details
-
StringPassthruDatabase
public StringPassthruDatabase()
-
-
Method Details
-
addEdge
void addEdge(BuildStringPassthruGraph.MethodParameter in, BuildStringPassthruGraph.MethodParameter out) Adds edge to the string passthru graph- Parameters:
in
- calleeout
- caller
-
findLinked
Set<BuildStringPassthruGraph.MethodParameter> findLinked(Set<BuildStringPassthruGraph.MethodParameter> inputs) -
findLinkedMethods
public Map<MethodDescriptor,int[]> findLinkedMethods(Set<BuildStringPassthruGraph.MethodParameter> inputs) Returns methods which call directly or indirectly methods from inputs passing the parameter unchanged- Parameters:
inputs
- input methods with parameter- Returns:
- Map where keys are methods and values are parameter indexes which can be passed to requested methods unchanged
-
getFileNameStringMethods
Returns methods which parameter is the file name- Returns:
- Map where keys are methods and values are parameter indexes which are used as file names
-