Class ThreadFlowLocation

java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.ThreadFlowLocation

public class ThreadFlowLocation extends Object
A location visited by an analysis tool while simulating or monitoring the execution of a program.
  • Constructor Details

    • ThreadFlowLocation

      public ThreadFlowLocation()
  • Method Details

    • getIndex

      public Integer getIndex()
      The index within the run threadFlowLocations array.
    • setIndex

      public void setIndex(Integer index)
      The index within the run threadFlowLocations array.
    • withIndex

      public ThreadFlowLocation withIndex(Integer index)
    • getLocation

      public Location getLocation()
      A location within a programming artifact.
    • setLocation

      public void setLocation(Location location)
      A location within a programming artifact.
    • withLocation

      public ThreadFlowLocation withLocation(Location location)
    • getStack

      public Stack getStack()
      A call stack that is relevant to a result.
    • setStack

      public void setStack(Stack stack)
      A call stack that is relevant to a result.
    • withStack

      public ThreadFlowLocation withStack(Stack stack)
    • getKinds

      public Set<String> getKinds()
      A set of distinct strings that categorize the thread flow location. Well-known kinds include 'acquire', 'release', 'enter', 'exit', 'call', 'return', 'branch', 'implicit', 'false', 'true', 'caution', 'danger', 'unknown', 'unreachable', 'taint', 'function', 'handler', 'lock', 'memory', 'resource', 'scope' and 'value'.
    • setKinds

      public void setKinds(Set<String> kinds)
      A set of distinct strings that categorize the thread flow location. Well-known kinds include 'acquire', 'release', 'enter', 'exit', 'call', 'return', 'branch', 'implicit', 'false', 'true', 'caution', 'danger', 'unknown', 'unreachable', 'taint', 'function', 'handler', 'lock', 'memory', 'resource', 'scope' and 'value'.
    • withKinds

      public ThreadFlowLocation withKinds(Set<String> kinds)
    • getTaxa

      public Set<ReportingDescriptorReference> getTaxa()
      An array of references to rule or taxonomy reporting descriptors that are applicable to the thread flow location.
    • setTaxa

      public void setTaxa(Set<ReportingDescriptorReference> taxa)
      An array of references to rule or taxonomy reporting descriptors that are applicable to the thread flow location.
    • withTaxa

    • getModule

      public String getModule()
      The name of the module that contains the code that is executing.
    • setModule

      public void setModule(String module)
      The name of the module that contains the code that is executing.
    • withModule

      public ThreadFlowLocation withModule(String module)
    • getState

      public State getState()
      A dictionary, each of whose keys specifies a variable or expression, the associated value of which represents the variable or expression value. For an annotation of kind 'continuation', for example, this dictionary might hold the current assumed values of a set of global variables.
    • setState

      public void setState(State state)
      A dictionary, each of whose keys specifies a variable or expression, the associated value of which represents the variable or expression value. For an annotation of kind 'continuation', for example, this dictionary might hold the current assumed values of a set of global variables.
    • withState

      public ThreadFlowLocation withState(State state)
    • getNestingLevel

      public Integer getNestingLevel()
      An integer representing a containment hierarchy within the thread flow.
    • setNestingLevel

      public void setNestingLevel(Integer nestingLevel)
      An integer representing a containment hierarchy within the thread flow.
    • withNestingLevel

      public ThreadFlowLocation withNestingLevel(Integer nestingLevel)
    • getExecutionOrder

      public Integer getExecutionOrder()
      An integer representing the temporal order in which execution reached this location.
    • setExecutionOrder

      public void setExecutionOrder(Integer executionOrder)
      An integer representing the temporal order in which execution reached this location.
    • withExecutionOrder

      public ThreadFlowLocation withExecutionOrder(Integer executionOrder)
    • getExecutionTimeUtc

      public Date getExecutionTimeUtc()
      The Coordinated Universal Time (UTC) date and time at which this location was executed.
    • setExecutionTimeUtc

      public void setExecutionTimeUtc(Date executionTimeUtc)
      The Coordinated Universal Time (UTC) date and time at which this location was executed.
    • withExecutionTimeUtc

      public ThreadFlowLocation withExecutionTimeUtc(Date executionTimeUtc)
    • getImportance

      public ThreadFlowLocation.Importance getImportance()
      Specifies the importance of this location in understanding the code flow in which it occurs. The order from most to least important is "essential", "important", "unimportant". Default: "important".
    • setImportance

      public void setImportance(ThreadFlowLocation.Importance importance)
      Specifies the importance of this location in understanding the code flow in which it occurs. The order from most to least important is "essential", "important", "unimportant". Default: "important".
    • withImportance

      public ThreadFlowLocation withImportance(ThreadFlowLocation.Importance importance)
    • getWebRequest

      public WebRequest getWebRequest()
      Describes an HTTP request.
    • setWebRequest

      public void setWebRequest(WebRequest webRequest)
      Describes an HTTP request.
    • withWebRequest

      public ThreadFlowLocation withWebRequest(WebRequest webRequest)
    • getWebResponse

      public WebResponse getWebResponse()
      Describes the response to an HTTP request.
    • setWebResponse

      public void setWebResponse(WebResponse webResponse)
      Describes the response to an HTTP request.
    • withWebResponse

      public ThreadFlowLocation withWebResponse(WebResponse webResponse)
    • getProperties

      public PropertyBag getProperties()
      Key/value pairs that provide additional information about the object.
    • setProperties

      public void setProperties(PropertyBag properties)
      Key/value pairs that provide additional information about the object.
    • withProperties

      public ThreadFlowLocation withProperties(PropertyBag properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object