Package io.vertigo.commons.script.parser
Class ScriptSeparator
- java.lang.Object
-
- io.vertigo.commons.script.parser.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 Summary
Constructors Constructor Description ScriptSeparator(String beginSeparator, String endSeparator)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBeginSeparator()StringgetEndSeparator()intindexOfBeginCaracter(String script, int start)Returns the next position of the begin separator.intindexOfEndCaracter(String script, int start)Returns the next position of the end separator.StringtoString()
-
-
-
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- textstart- 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- textstart- start- Returns:
- the next position of the end separator
-
-