Class Content<D,T>

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

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

  • Method Details

    • toString

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

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

      The default implementation returns null.

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

      public String getText()
      Description copied from interface: Token
      Returns the text content of this token.

      The default implementation returns null.

      Specified by:
      getText in interface Token<D,T>
      Returns:
      the text content of this token, or null if not available.
    • getType

      public T getType()
      Description copied from interface: Token
      Returns the type of this token.
      Specified by:
      getType in interface 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()
    • viewType

      public static <T> Data.View<T> viewType()