Class MacroInfo


  • public class MacroInfo
    extends Object
    This class represents some generic information related to macro and their parsing / rendering.
    Since:
    10.10RC1
    Version:
    $Id: 8968954a36123670519eec791304ddf57cf691f6 $
    • Constructor Detail

      • MacroInfo

        public MacroInfo​(String content)
        Build a MacroInfo based on the content of a comment.
        Parameters:
        content - A comment representing a macro. It must start with a startmacro comment marker MACRO_START.
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name of the macro.
      • getParameters

        public WikiParameters getParameters()
        Returns:
        the parameters of the macro.
      • setParameters

        public void setParameters​(WikiParameters parameters)
        Allow to set new parameters for this macro.
        Parameters:
        parameters - the parameters to set.
        Since:
        11.1RC1
      • getContent

        public String getContent()
        Returns:
        the content of the macro.
      • setContent

        public void setContent​(String content)
        Allow to specify the content of the macro when changed in a non generated content block.
        Parameters:
        content - the new content of the macro.
      • getContentScannerContext

        public WikiScannerContext getContentScannerContext()
        Returns:
        the scanner context that is used to parse the content of the macro.
        Since:
        11.4RC1
      • setContentScannerContext

        public void setContentScannerContext​(WikiScannerContext contentScannerContext)
        Parameters:
        contentScannerContext - the scanner context that is used to parse the content of the macro.
        Since:
        11.4RC1
      • setParameterScannerContext

        public void setParameterScannerContext​(String parameter,
                                               WikiScannerContext scannerContext)
        Parameters:
        parameter - a parameter name of the macro
        scannerContext - the scanner context that is used to parse the specified parameter of the macro.
        Since:
        11.4RC1
      • getParameterScannerContext

        public WikiScannerContext getParameterScannerContext​(String parameter)
        Parameters:
        parameter - a parameter name of the macro
        Returns:
        the scanner context that is used to parse the specified parameter of the macro.
        Since:
        11.4RC1