Class Location
java.lang.Object
edu.umd.cs.findbugs.sarif.Location
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class(package private) static final class(package private) static final class(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull List<Location.LogicalLocation> private final @Nullable Location.PhysicalLocation -
Constructor Summary
ConstructorsConstructorDescriptionLocation(@Nullable Location.PhysicalLocation physicalLocation, @NonNull Collection<Location.LogicalLocation> logicalLocations) -
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable Location.PhysicalLocationfindPhysicalLocation(@NonNull BugInstance bugInstance, @NonNull SourceFinder sourceFinder, Map<URI, String> baseToId) private static @Nullable Optional<Location.PhysicalLocation> findPhysicalLocation(@NonNull StackTraceElement element, @NonNull SourceFinder sourceFinder, Map<URI, String> baseToId) fromBugInstance(@NonNull BugInstance bugInstance, @NonNull SourceFinder sourceFinder, @NonNull Map<URI, String> baseToId) (package private) static LocationfromStackTraceElement(@NonNull StackTraceElement element, @NonNull SourceFinder sourceFinder, @NonNull Map<URI, String> baseToId) (package private) @Nullable Location.PhysicalLocation(package private) com.google.gson.JsonObject
-
Field Details
-
physicalLocation
-
logicalLocations
-
-
Constructor Details
-
Location
Location(@Nullable Location.PhysicalLocation physicalLocation, @NonNull Collection<Location.LogicalLocation> logicalLocations)
-
-
Method Details
-
getPhysicalLocation
@Nullable Location.PhysicalLocation getPhysicalLocation() -
toJsonObject
com.google.gson.JsonObject toJsonObject() -
fromBugInstance
static Optional<Location> fromBugInstance(@NonNull BugInstance bugInstance, @NonNull SourceFinder sourceFinder, @NonNull Map<URI, String> baseToId) -
fromStackTraceElement
static Location fromStackTraceElement(@NonNull StackTraceElement element, @NonNull SourceFinder sourceFinder, @NonNull Map<URI, String> baseToId) -
findPhysicalLocation
private static @Nullable Location.PhysicalLocation findPhysicalLocation(@NonNull BugInstance bugInstance, @NonNull SourceFinder sourceFinder, Map<URI, String> baseToId) -
findPhysicalLocation
private static @Nullable Optional<Location.PhysicalLocation> findPhysicalLocation(@NonNull StackTraceElement element, @NonNull SourceFinder sourceFinder, Map<URI, String> baseToId)
-