Class SyntaxContent


  • public class SyntaxContent
    extends Object
    Represents text content that has a syntax.
    Since:
    8.2RC1
    Version:
    $Id: af6a8d119e5c9daa2a79d11ad175f04ab98eedb7 $
    • Constructor Detail

      • SyntaxContent

        public SyntaxContent​(String content,
                             Syntax syntax)
        Creates a new instance that wraps the given text content and its syntax.
        Parameters:
        content - the text content
        syntax - the syntax of the content
    • Method Detail

      • getSyntax

        public Syntax getSyntax()
        Returns:
        the syntax of the content
      • getContent

        public String getContent()
        Returns:
        the text content