Class SecondarySinkDefinition

All Implemented Interfaces:
ISourceSinkDefinition

public class SecondarySinkDefinition extends AbstractSourceSinkDefinition
Special source/sink definition for statements that are sinks merely because we need the respective flow to activate another flow. In case something is written to an output stream, we need a flow to know whether the output stream is interesting, i.e., whether to keep or discard this main flow. This class is used to model sinks for such secondary flows.
Author:
Steven Arzt
  • Field Details

  • Constructor Details

    • SecondarySinkDefinition

      public SecondarySinkDefinition()
  • Method Details

    • getSourceOnlyDefinition

      public ISourceSinkDefinition getSourceOnlyDefinition()
      Description copied from interface: ISourceSinkDefinition
      Creates a definition which is a subset of this definition that only contains the sources
      Returns:
      The source-only subset of this definition
    • getSinkOnlyDefinition

      public ISourceSinkDefinition getSinkOnlyDefinition()
      Description copied from interface: ISourceSinkDefinition
      Creates a definition which is a subset of this definition that only contains the sinks
      Returns:
      The sink-only subset of this definition
    • isEmpty

      public boolean isEmpty()
      Description copied from interface: ISourceSinkDefinition
      Indicates if the definition contains any sources or sinks
      Returns:
      The boolean if this definition is empty