Class ScriptSeparator

  • All Implemented Interfaces:
    Serializable

    public final class ScriptSeparator
    extends Object
    implements Serializable
    Gestion des Séparateurs utilisés par le parser. Un séparateur est défini - soit par un caractère. (le même en début et fin) Exemple # : #name# - soit par des chaines de caractères.(qui peuvent être différentes) Exemple <% et %> : XXXX<%if (1=1){%> ScriptSeparator implements Serializable because it's referenced by Serializable object (enum SeparatorType)
    Author:
    pchretien
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptSeparator

        public ScriptSeparator​(String beginSeparator,
                               String endSeparator)
        Constructor. Si le séparateur de début et de fin sont différents sous forme de String.
        Parameters:
        beginSeparator - Séparateur de début
        endSeparator - Séparateur de fin
    • Method Detail

      • getBeginSeparator

        public String getBeginSeparator()
      • getEndSeparator

        public String getEndSeparator()
      • indexOfBeginCaracter

        public int indexOfBeginCaracter​(String script,
                                        int start)
        Returns the next position of the begin separator.
        Parameters:
        script - text
        start - start
        Returns:
        the next position of the begin separator
      • indexOfEndCaracter

        public int indexOfEndCaracter​(String script,
                                      int start)
        Returns the next position of the end separator.
        Parameters:
        script - text
        start - start
        Returns:
        the next position of the end separator