Package io.vertigo.commons.script.parser
Class ScriptSeparator
java.lang.Object
io.vertigo.commons.script.parser.ScriptSeparator
- All Implemented Interfaces:
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 invalid input: '<'% et %> : XXXXinvalid input: '<'%if (1=1){%>
ScriptSeparator implements Serializable because it's referenced by Serializable object (enum SeparatorType)
- Author:
- pchretien
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintindexOfBeginCaracter(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.toString()
-
Constructor Details
-
ScriptSeparator
Constructor. Si le séparateur de début et de fin sont différents sous forme de String.- Parameters:
beginSeparator- Séparateur de débutendSeparator- Séparateur de fin
-
-
Method Details
-
getBeginSeparator
-
getEndSeparator
-
indexOfBeginCaracter
Returns the next position of the begin separator.- Parameters:
script- textstart- start- Returns:
- the next position of the begin separator
-
indexOfEndCaracter
Returns the next position of the end separator.- Parameters:
script- textstart- start- Returns:
- the next position of the end separator
-
toString
-