Class AstNode

java.lang.Object
org.infosmid.stream.dsl.AstNode
Direct Known Subclasses:
AppNode, ArgumentNode, DestinationNode, LabelNode, SinkDestinationNode, SourceDestinationNode, StreamNode

public abstract class AstNode extends Object
Common supertype for the ast nodes built during stream parsing.
  • Field Details

    • startPos

      protected int startPos
    • endPos

      protected int endPos
  • Constructor Details

    • AstNode

      public AstNode(int startPos, int endPos)
  • Method Details

    • getStartPos

      public int getStartPos()
    • getEndPos

      public int getEndPos()
    • stringify

      public abstract String stringify(boolean includePositionInfo)
      Parameters:
      includePositionInfo - 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.
    • stringify

      public String stringify()