Class StreamNode

java.lang.Object
org.infosmid.stream.dsl.AstNode
org.infosmid.stream.dsl.StreamNode

public class StreamNode extends AstNode
  • Field Details

    • streamText

      protected final String streamText
    • streamName

      protected final String streamName
    • streamDescription

      protected final String streamDescription
    • appNodes

      protected final List<AppNode> appNodes
    • sourceDestinationNode

      protected SourceDestinationNode sourceDestinationNode
    • sinkDestinationNode

      protected SinkDestinationNode sinkDestinationNode
  • Constructor Details

  • Method Details

    • stringify

      public String stringify(boolean includePositionalInfo)
      Specified by:
      stringify in class AstNode
      Parameters:
      includePositionalInfo - position information is returned as a part of the result if set to true.
      Returns:
      a string representation of the AST. Useful for debugging/testing.
    • toString

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

      public List<AppNode> getAppNodes()
    • getSourceDestinationNode

      public SourceDestinationNode getSourceDestinationNode()
    • getSinkDestinationNode

      public SinkDestinationNode getSinkDestinationNode()
    • getStreamName

      public String getStreamName()
    • getStreamDescription

      public String getStreamDescription()
    • getApp

      public AppNode getApp(String appName)
      Find the first reference to the named app in the stream. If the same app is referred to multiple times the secondary references cannot be accessed via this method.
      Parameters:
      appName - the name of the app
      Returns:
      the first occurrence of the named app in the stream
    • getIndexOfLabel

      public int getIndexOfLabel(String labelOrAppName)
    • getStreamData

      public String getStreamData()
    • getStreamText

      public String getStreamText()
    • getName

      public String getName()