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 String
getBeginSeparator()
String
getEndSeparator()
int
indexOfBeginCaracter(String script, int start)
Returns the next position of the begin separator.int
indexOfEndCaracter(String script, int start)
Returns the next position of the end separator.String
toString()
-
-
-
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
-
-