Class CodeMacroSource


  • @Unstable
    public class CodeMacroSource
    extends Object
    A content to use in a code macro.
    Since:
    15.0RC1, 14.10.2
    Version:
    $Id: 6d108a6f6f1421df776067818d3dfe850621ae44 $
    • Constructor Detail

      • CodeMacroSource

        public CodeMacroSource​(org.xwiki.rendering.macro.source.MacroContentSourceReference reference,
                               String content,
                               String language)
        Parameters:
        reference - the reference of the content
        content - the content to highlight
        language - the language of the content if known, null otherwise
        Since:
        15.1RC1, 14.10.5
    • Method Detail

      • getReference

        public org.xwiki.rendering.macro.source.MacroContentSourceReference getReference()
        Returns:
        the reference of the content
        Since:
        15.1RC1, 14.10.5
      • getContent

        public String getContent()
        Returns:
        the content to highlight
      • getLanguage

        public String getLanguage()
        Returns:
        the language of the content if known, null otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object