Package edu.umd.cs.findbugs
Class ResourceCreationPoint
- java.lang.Object
-
- edu.umd.cs.findbugs.ResourceCreationPoint
-
public class ResourceCreationPoint extends java.lang.Object
A resource creation point. This serves as an embodiment of the resource for use with ResourceValueAnalysis.- See Also:
ResourceValueAnalysis
,ResourceTrackingDetector
-
-
Field Summary
Fields Modifier and Type Field Description private Location
location
Location in the method where the resource is created.private java.lang.String
resourceClass
The type of the resource.
-
Constructor Summary
Constructors Constructor Description ResourceCreationPoint(Location location, java.lang.String resourceClass)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Location
getLocation()
Get the location where the resource is created.java.lang.String
getResourceClass()
Get the name of the resource's class.
-
-
-
Field Detail
-
location
private final Location location
Location in the method where the resource is created.
-
resourceClass
private final java.lang.String resourceClass
The type of the resource.
-
-
Constructor Detail
-
ResourceCreationPoint
public ResourceCreationPoint(Location location, java.lang.String resourceClass)
Constructor.- Parameters:
location
- location where resource is createdresourceClass
- the name of the resource's class
-
-
Method Detail
-
getLocation
public Location getLocation()
Get the location where the resource is created.
-
getResourceClass
public java.lang.String getResourceClass()
Get the name of the resource's class.
-
-