java.lang.Object
org.jhotdraw8.css.converter.AbstractCssConverter<org.jhotdraw8.base.text.RegexReplace>
org.jhotdraw8.draw.css.converter.RegexCssConverter
- All Implemented Interfaces:
org.jhotdraw8.base.converter.Converter<org.jhotdraw8.base.text.RegexReplace>,CssConverter<org.jhotdraw8.base.text.RegexReplace>
CssRegexConverter.
Parses the following EBNF:
RegexReplace := "none" | "replace(" Find "," [ Replace ] ")" ;
Find := TT_STRING;
Replace := TT_STRING;
- Author:
- Werner Randelshofer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringorg.jhotdraw8.base.text.RegexReplaceparseNonNull(CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) protected <TT extends org.jhotdraw8.base.text.RegexReplace>
voidproduceTokensNonNull(TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, Consumer<CssToken> out) Methods inherited from class org.jhotdraw8.css.converter.AbstractCssConverter
getDefaultValue, isNullable, parse, produceTokensMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.base.converter.Converter
fromString, fromString, fromStringNonNull, fromStringNonNull, fromStringNonNull, fromStringNonNull, needsIdResolver, toString, toStringMethods inherited from interface org.jhotdraw8.css.converter.CssConverter
fromString, fromString, getExamples, toString, toString, toString, toTokens
-
Field Details
-
REPLACE_FUNCTION
- See Also:
-
-
Constructor Details
-
RegexCssConverter
public RegexCssConverter(boolean nullable)
-
-
Method Details
-
parseNonNull
public org.jhotdraw8.base.text.RegexReplace parseNonNull(CssTokenizer tt, @Nullable org.jhotdraw8.base.converter.IdResolver idResolver) throws ParseException, IOException - Specified by:
parseNonNullin interfaceCssConverter<org.jhotdraw8.base.text.RegexReplace>- Specified by:
parseNonNullin classAbstractCssConverter<org.jhotdraw8.base.text.RegexReplace>- Throws:
ParseExceptionIOException
-
getHelpText
-
produceTokensNonNull
protected <TT extends org.jhotdraw8.base.text.RegexReplace> void produceTokensNonNull(TT value, @Nullable org.jhotdraw8.base.converter.IdSupplier idSupplier, Consumer<CssToken> out) - Specified by:
produceTokensNonNullin classAbstractCssConverter<org.jhotdraw8.base.text.RegexReplace>
-