Class Content<D,T>

java.lang.Object
eu.bandm.tools.ramus.runtime2.Data
eu.bandm.tools.ramus.runtime2.Content<D,T>
All Implemented Interfaces:
Parser.Token<D,T>

public class Content<D,T> extends Data implements Parser.Token<D,T>
  • Constructor Details

  • Method Details

    • toString

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

      public Location<D> getLocation()
      Description copied from interface: Parser.Token
      Returns the source location of this token.

      The default implementation returns null.

      Specified by:
      getLocation in interface Parser.Token<D,T>
      Returns:
      the source location of this token, or null if not available.
    • getText

      public String getText()
      Description copied from interface: Parser.Token
      Returns the text content of this token.
      Specified by:
      getText in interface Parser.Token<D,T>
      Returns:
      the text content of this token.
    • getType

      public T getType()
      Description copied from interface: Parser.Token
      Returns the type of this token.
      Specified by:
      getType in interface Parser.Token<D,T>
      Returns:
      the type of this token.
    • viewContent

      public static <D, T> Data.View<Content<D,T>> viewContent()
    • viewText

      public static Data.View<String> viewText()