Interface IQuoteType
-
- All Known Subinterfaces:
IEnumQuoteType<E>
,IRegexQuoteType
- All Known Implementing Classes:
BashQuoteType
,JavaQuoteType
,RegexQuoteType
,SedRegexQuoteType
public interface IQuoteType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
escape(String string)
IEscapeType
getEscapeType()
String
getPostfix()
The postfix to use when quoting a string.String
getPrefix()
The prefix to use when quoting a string.default boolean
isQuoted(String string)
boolean
isQuoteNeeded(CharSequence string)
default String
quote(QuoteControl option, String string, IQuoteType... otherQuoteTypes)
default String
unescape(String string)
default String
unquote(String string)
-
-
-
Method Detail
-
getEscapeType
IEscapeType getEscapeType()
-
getPostfix
String getPostfix()
The postfix to use when quoting a string. For example this may be a single double quote character.- Returns:
- the postfix to use when quoting a string.
-
getPrefix
String getPrefix()
The prefix to use when quoting a string. For example this may be a single double quote character.- Returns:
- the prefix to use when quoting a string.
-
isQuoted
default boolean isQuoted(String string)
-
isQuoteNeeded
boolean isQuoteNeeded(CharSequence string)
-
quote
default String quote(QuoteControl option, String string, IQuoteType... otherQuoteTypes)
-
-