- elements - Variable in class de.unkrig.commons.text.json.Json.Array
-
The (unmodifiable and constant) list of array elements.
- enableExtension(Parser.Extension) - Method in class de.unkrig.commons.text.expression.Parser
-
Enables the given parsing extension.
- eoi() - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Asserts that the scanner is at end-of-input.
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.Array
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.False
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.Member
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.Null
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.NumbeR
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.ObjecT
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.StrinG
-
- equals(Object) - Method in class de.unkrig.commons.text.json.Json.True
-
- error(String, Throwable) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- error(String, Throwable, Object...) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- error(String, Object...) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- error(String) - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
- error(String) - Method in interface de.unkrig.commons.text.Printer
-
Prints an error condition.
- error(String, Object...) - Method in interface de.unkrig.commons.text.Printer
-
Prints an error condition.
- error(String, Throwable) - Method in interface de.unkrig.commons.text.Printer
-
Prints an error condition.
- error(String, Throwable, Object...) - Method in interface de.unkrig.commons.text.Printer
-
Prints an error condition.
- error(String) - Static method in class de.unkrig.commons.text.Printers
-
Prints an error condition on the context printer.
- error(String, Object...) - Static method in class de.unkrig.commons.text.Printers
-
Prints an error condition on the context printer.
- error(String, Throwable) - Static method in class de.unkrig.commons.text.Printers
-
Prints an error condition on the context printer.
- error(String, Throwable, Object...) - Static method in class de.unkrig.commons.text.Printers
-
Prints an error condition on the context printer.
- error(String) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- error(String, Throwable) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- error(String, Object...) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- error(String, Throwable, Object...) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- error(String) - Method in class de.unkrig.commons.text.WriterPrinter
-
- evaluate(Object...) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluate(Mapping<String, ?>) - Method in interface de.unkrig.commons.text.expression.Expression
-
Computes the value of the expression
- evaluate(Object...) - Method in interface de.unkrig.commons.text.expression.Expression
-
Computes the value of the expression.
- evaluate(String, Object...) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- evaluate(String, Mapping<String, ?>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- evaluate(String) - Method in class de.unkrig.commons.text.pattern.Glob
-
- evaluateExpressionTo(String[], String, Class<T>, Mapping<String, ?>) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
Scans, parses and evaluates an expression, and converts the result to <T>
.
- evaluateLeniently(Expression, Mapping<String, ?>) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
- evaluateLeniently(Expression, Object...) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
- evaluateTo(Mapping<String, ?>, Class<T>) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateTo(Class<T>, Object...) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateTo(Mapping<String, ?>, Class<T>) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateTo(Class<T>, Object...) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateTo(String, Class<T>, Object...) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses, evaluates and returns an expression.
- evaluateTo(String, Class<T>, Mapping<String, ?>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses, evaluates and returns an expression.
- evaluateTo(Expression, Class<T>, Mapping<String, ?>) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
- evaluateTo(Expression, Class<T>, Object...) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
- evaluateToBoolean(Mapping<String, ?>) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateToBoolean(Object...) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateToBoolean(Mapping<String, ?>) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateToBoolean(Object...) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateToBoolean(String, Object...) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- evaluateToBoolean(String, Mapping<String, ?>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- evaluateToPrimitive(Mapping<String, ?>, Class<T>) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateToPrimitive(Class<T>, Object...) - Method in class de.unkrig.commons.text.expression.AbstractExpression
-
- evaluateToPrimitive(Mapping<String, ?>, Class<T>) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateToPrimitive(Class<T>, Object...) - Method in interface de.unkrig.commons.text.expression.Expression
-
- evaluateToPrimitive(String, Class<?>, Object...) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- evaluateToPrimitive(String, Class<?>, Mapping<String, ?>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Scans, parses and evaluates an expression.
- EvaluationException - Exception in de.unkrig.commons.text.expression
-
Indicates a problem that has occurred while an expression was evaluated.
- EvaluationException(String) - Constructor for exception de.unkrig.commons.text.expression.EvaluationException
-
- EvaluationException(Throwable) - Constructor for exception de.unkrig.commons.text.expression.EvaluationException
-
- expand(String, String...) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
Turns the given string into an expression.
- expand(String, Set<String>) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
Turns the given string into an expression.
- expand(String, Predicate<? super String>) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
Turns the given string into an expression.
- expandSingleLetterOptions(String[], int, Object...) - Static method in class de.unkrig.commons.text.CommandLineUtil
-
Replaces 'combined' single-letter options (as in "ls -lart"
) with 'long' options (as "ls -long
-all -reverse -time"
).
- Expression - Interface in de.unkrig.commons.text.expression
-
An expression evaluates to a value each time it is
evaluated
.
- ExpressionEvaluator - Class in de.unkrig.commons.text.expression
-
- ExpressionEvaluator(PredicateWhichThrows<? super String, ? extends RuntimeException>) - Constructor for class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- ExpressionEvaluator(Collection<String>) - Constructor for class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- ExpressionEvaluator(String...) - Constructor for class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- ExpressionMatchReplacer - Class in de.unkrig.commons.text.pattern
-
- ExpressionUtil - Class in de.unkrig.commons.text.expression
-
- parenthesized(T) - Method in class de.unkrig.commons.text.expression.Parser
-
- parse(String) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Parses an expression.
- parse(ProducerWhichThrows<? extends AbstractScanner.Token<Scanner.TokenType>, ? extends ScanException>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Parses an expression from a tokenProducer.
- parse() - Method in class de.unkrig.commons.text.expression.Parser
-
- parse(String) - Static method in class de.unkrig.commons.text.pattern.ExpressionMatchReplacer
-
- parse(String, Object...) - Static method in class de.unkrig.commons.text.pattern.ExpressionMatchReplacer
-
- parse(String, Mapping<String, ?>, Predicate<String>) - Static method in class de.unkrig.commons.text.pattern.ExpressionMatchReplacer
-
- parse(DocumentBuilder, File, String) - Static method in class de.unkrig.commons.text.xml.XmlUtil
-
- parse(DocumentBuilder, InputSource) - Static method in class de.unkrig.commons.text.xml.XmlUtil
-
- parseArray() - Method in class de.unkrig.commons.text.json.JsonParser
-
array := '[' [ value { ',' value } ] ']'
- ParseException - Exception in de.unkrig.commons.text.parser
-
Indicates a problem that has occurred when a document was parsed.
- ParseException(String) - Constructor for exception de.unkrig.commons.text.parser.ParseException
-
- ParseException(Throwable) - Constructor for exception de.unkrig.commons.text.parser.ParseException
-
- ParseException(String, Throwable) - Constructor for exception de.unkrig.commons.text.parser.ParseException
-
- parseObject() - Method in class de.unkrig.commons.text.json.JsonParser
-
object := '{' [ member { ',' member } ] '}'
member := string ':' value
- parsePart(CharSequence, int[]) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Parses an expression from the spec, but only as far as it is possible without a parse error.
- parsePart() - Method in class de.unkrig.commons.text.expression.Parser
-
- parsePatternAndReplacement(String) - Static method in class de.unkrig.commons.text.pattern.Pattern2
-
Splits the given string into "pattern" and "replacement".
- parser(String) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- parser(ProducerWhichThrows<? extends AbstractScanner.Token<Scanner.TokenType>, ? extends ScanException>) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- Parser<T,EX extends Throwable> - Class in de.unkrig.commons.text.expression
-
Parses an expression like
s == "abc" && (c == 'b' || !
- Parser(ProducerWhichThrows<? extends AbstractScanner.Token<Scanner.TokenType>, ? extends ScanException>) - Constructor for class de.unkrig.commons.text.expression.Parser
-
- Parser(Reader) - Constructor for class de.unkrig.commons.text.expression.Parser
-
- Parser(String) - Constructor for class de.unkrig.commons.text.expression.Parser
-
- Parser.BinaryOperator - Enum in de.unkrig.commons.text.expression
-
Representation of all binary operators.
- Parser.Extension - Enum in de.unkrig.commons.text.expression
-
Various extensions to the Java expression syntax.
- Parser.UnaryOperator - Enum in de.unkrig.commons.text.expression
-
Representation of all unary operators.
- parseValue() - Method in class de.unkrig.commons.text.json.JsonParser
-
value :=
string
| number
| object
| array
| 'true'
| 'false'
| 'null'
- Pattern2 - Class in de.unkrig.commons.text.pattern
-
- PatternUtil - Class in de.unkrig.commons.text.pattern
-
- peek() - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token, but does not consume it.
- peek(TT) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token, but does not consume it.
- peek(String) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token, but does not consume it.
- peek(Object...) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token, but does not consume it.
- peek() - Method in class de.unkrig.commons.text.StringStream
-
- peek(String) - Method in class de.unkrig.commons.text.StringStream
-
- peek(Pattern) - Method in class de.unkrig.commons.text.StringStream
-
- peekRead(TT) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token and consumes it if its type is tokenType.
- peekRead(String) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token and consumes it if it matches.
- peekRead(String...) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token and consumes it if it matches.
- peekRead(TT...) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token and consumes it if its type is one of the tokenTypes.
- peekRead(String) - Method in class de.unkrig.commons.text.StringStream
-
Consumes the next string iff it equals the expected string.
- peekRead(Pattern) - Method in class de.unkrig.commons.text.StringStream
-
Consumes the next string iff it matches the given pattern.
- peekRead(String...) - Method in class de.unkrig.commons.text.StringStream
-
Consumes the next string iff it equals one of the expected strings.
- peekReadEnum(T...) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Checks the next token and consumes it if its text equals the return value of
toString()
of one of the
values.
- pop() - Method in class de.unkrig.commons.text.scanner.StatefulScanner.Rule
-
Restores a previously pushed state.
- prepend(String...) - Method in interface de.unkrig.commons.text.Notations.Phrase
-
- prependExclude(Glob) - Method in class de.unkrig.commons.text.pattern.IncludeExclude
-
- prependInclude(Glob) - Method in class de.unkrig.commons.text.pattern.IncludeExclude
-
- previousTokenOffset - Variable in class de.unkrig.commons.text.scanner.AbstractScanner
-
- Printer - Interface in de.unkrig.commons.text
-
A very generic interface for applications to "print messages".
- Printers - Class in de.unkrig.commons.text
-
A super-simple API for managing output of different kinds.
- produce() - Method in class de.unkrig.commons.text.scanner.StatefulScanner
-
- produce() - Method in class de.unkrig.commons.text.scanner.StatelessScanner
-
- produce() - Method in interface de.unkrig.commons.text.scanner.StringScanner
-
- ProxyPrinter - Class in de.unkrig.commons.text
-
- ProxyPrinter() - Constructor for class de.unkrig.commons.text.ProxyPrinter
-
- ProxyPrinter(Printer) - Constructor for class de.unkrig.commons.text.ProxyPrinter
-
- push(S) - Method in class de.unkrig.commons.text.scanner.StatefulScanner.Rule
-
Saves the current state and changes to the nextState.
- rawStringScanner() - Static method in class de.unkrig.commons.text.json.JsonScanner
-
Returns a Java scanner that also produces SPACE and COMMENT tokens.
- rawStringScanner() - Static method in class de.unkrig.commons.text.scanner.JavaScanner
-
Returns a Java scanner that also produces SPACE and COMMENT tokens.
- read() - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Consumes the next token.
- read(TT) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Consumes the next token.
- read(String) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Consumes the next token.
- read(Object...) - Method in class de.unkrig.commons.text.parser.AbstractParser
-
Consumes the next token.
- read() - Method in class de.unkrig.commons.text.StringStream
-
Verifies that the next string is not null
, and consumes it.
- read(String) - Method in class de.unkrig.commons.text.StringStream
-
Verifies that the next string equals the given expected string, and consumes it.
- read(Pattern) - Method in class de.unkrig.commons.text.StringStream
-
Verifies that the next string matches the given pattern.
- readRest() - Method in class de.unkrig.commons.text.StringStream
-
Consumes and returns all remaining elements.
- redirect(AbstractPrinter.Level, Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Creates and returns an
AbstractPrinter
which writes messages of the given
levelto the given
writer, and forwards all other messages to
this
AbstractWriter
.
- redirect(EnumSet<AbstractPrinter.Level>, Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Creates and returns an
AbstractPrinter
which writes messages of the given
levelsto the given
writer, and forwards all other messages to
this
AbstractWriter
.
- redirect(AbstractPrinter.Level, ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Creates and returns an
AbstractPrinter
which sends all non-
null
messages of the given
levelto the given
messageConsumer, and forwards all other messages to
this
AbstractWriter
.
- redirect(EnumSet<AbstractPrinter.Level>, ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Creates and returns an
AbstractPrinter
which sends all non-
null
messages of the given
levelsto the given
messageConsumer, and forwards all other messages to
this
AbstractWriter
.
- redirectDebug(Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectDebug(ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectError(Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectError(ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectInfo(Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectInfo(ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectInfo(Writer, RunnableWhichThrows<EX>) - Static method in class de.unkrig.commons.text.Printers
-
- redirectInfo(ConsumerWhichThrows<? super String, ? extends RuntimeException>, RunnableWhichThrows<? extends EX>) - Static method in class de.unkrig.commons.text.Printers
-
- redirectInfoToFile(File, Charset, RunnableWhichThrows<EX>) - Static method in class de.unkrig.commons.text.Printers
-
- redirectToFile(AbstractPrinter.Level, File, Charset, RunnableWhichThrows<EX>) - Static method in class de.unkrig.commons.text.Printers
-
Runs the runnable with messages of the given level redirected into the file.
- redirectToFile(EnumSet<AbstractPrinter.Level>, File, Charset, Printer, RunnableWhichThrows<EX>) - Static method in class de.unkrig.commons.text.Printers
-
Runs the runnable with messages of the given levels redirected into the file.
- redirectVerbose(Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectVerbose(ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectWarn(Writer) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- redirectWarn(ConsumerWhichThrows<? super String, ? extends RuntimeException>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- REMAIN - Variable in class de.unkrig.commons.text.scanner.StatefulScanner
-
Special value for some method parameters; indicates that the current state should remain when the
rule applies.
- replace(String) - Method in class de.unkrig.commons.text.pattern.Glob
-
Iff the
subject matches this
Glob
, then a non-null string ist returned; the algorithm that
computes that string depends on the concrete
Glob
implementation; the default implementation simply
returns the
subject.
- replace(String) - Method in class de.unkrig.commons.text.pattern.IncludeExclude
-
The subject is transformed by all matching includes, until an exclude matches.
- replaceAll(Reader, Pattern, String, Appendable) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Reads text from in, replaces all matches of pattern according to the
replacementString, and writes the result to out.
- replaceAllFilterReader(Reader, Pattern, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends IOException>) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Creates and returns a filter
Reader
which replaces matches of the
pattern within the
character stream on-the-fly through the
matchReplacer.
- replaceAllFilterWriter(Pattern, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends IOException>, Appendable) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Creates and returns a filter
Writer
which replaces matches of the
pattern within the
character stream on-the-fly through the
matchReplacer.
- REPLACEMENT - Static variable in class de.unkrig.commons.text.pattern.Glob
-
Modifies the pattern compilation as follows:
'=' is now a metacharacter, i.e. to include it literally in the pattern, it must be escaped with a backslash.
- replacementStringMatchReplacer(String) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
- replacementStringReplacer(String) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
- replaceSome(Matcher, String) - Static method in class de.unkrig.commons.text.pattern.ExpressionMatchReplacer
-
Substitutes all matches of the matcher with the value of an expression.
- replaceSome(Matcher, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends EX>) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
The generalized form of
Matcher.replaceAll(String)
: The replacement for a match is not formed from a
"replacement string" (with variables "$0", "$1", ...), but is computed by the
matchReplacer.
- replaceSome(Reader, Pattern, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends EX>, Appendable, int) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Reads characters from in, finds all matches of pattern, replaces each match with the
result of the matchReplacer, and writes the result to out.
- replaceSystemProperties(Reader, Appendable) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Reads text from in, replaces all matches of
"${
system-property-name}
" with the value of the system property, and writes
the result to out.
- run(Runnable) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Sets the current thread's context printer to this
, runs the runnable, and eventually
restores the original context printer.
- run(RunnableWhichThrows<EX>) - Method in class de.unkrig.commons.text.AbstractPrinter
-
Sets the current thread's context printer to this
, runs the runnable, and eventually
restores the original context printer.
- ScanException - Exception in de.unkrig.commons.text.scanner
-
Indicates a problem that occurred when a token was scanned from a document.
- ScanException(String) - Constructor for exception de.unkrig.commons.text.scanner.ScanException
-
- ScanException(Throwable) - Constructor for exception de.unkrig.commons.text.scanner.ScanException
-
- Scanner - Class in de.unkrig.commons.text.expression
-
- scanner - Variable in class de.unkrig.commons.text.parser.AbstractParser
-
The source of tokens that are processed by this parser.
- scanner(StringScanner<TT>, File, Charset) - Static method in class de.unkrig.commons.text.scanner.ScannerUtil
-
- Scanner.TokenType - Enum in de.unkrig.commons.text.expression
-
- ScannerUtil - Class in de.unkrig.commons.text.scanner
-
Various scanner-related utility methods.
- setClassLoader(ClassLoader) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- setClassLoader(ClassLoader) - Method in class de.unkrig.commons.text.expression.Parser
-
- setCurrentState(S) - Method in class de.unkrig.commons.text.scanner.StatefulScanner
-
- setDebug() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Print all messages (errors, warnings, info, verbose and debug).
- setErr(Writer) - Method in class de.unkrig.commons.text.WriterPrinter
-
- setExtensions(Collection<Parser.Extension>) - Method in class de.unkrig.commons.text.expression.Parser
-
Sets the given parsing extensions.
- setExtensions(EnumSet<Parser.Extension>) - Method in class de.unkrig.commons.text.expression.Parser
-
Sets the given parsing extensions.
- setImports(String[]) - Method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- setImports(String[]) - Method in class de.unkrig.commons.text.expression.Parser
-
By default, there is only one import: "java.lang".
- setInput(CharSequence) - Method in class de.unkrig.commons.text.scanner.AbstractScanner
-
- setInput(CharSequence) - Method in interface de.unkrig.commons.text.scanner.StringScanner
-
- setNoError() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Suppress all messages.
- setNormal() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Revert to default settings.
- setNoWarn() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Suppress all messages but errors.
- setOut(Writer) - Method in class de.unkrig.commons.text.WriterPrinter
-
- setQuiet() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Suppress "normal" output; print only errors and warnings.
- setVerbose() - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
Print all messages (errors, warnings, infos and verbose) except debug.
- StatefulScanner<TT extends Enum<TT>,S extends Enum<S>> - Class in de.unkrig.commons.text.scanner
-
A scanner that produces
Token
s from a character stream.
- StatefulScanner(Class<S>) - Constructor for class de.unkrig.commons.text.scanner.StatefulScanner
-
- StatefulScanner(StatefulScanner<TT, S>) - Constructor for class de.unkrig.commons.text.scanner.StatefulScanner
-
Clones the configuration of the other scanner, but has a separate state.
- StatefulScanner.Rule - Class in de.unkrig.commons.text.scanner
-
- StatelessScanner<TT extends Enum<TT>> - Class in de.unkrig.commons.text.scanner
-
- StatelessScanner() - Constructor for class de.unkrig.commons.text.scanner.StatelessScanner
-
- staticFieldReference(Class<?>, String) - Method in class de.unkrig.commons.text.expression.Parser
-
- staticMethodInvocation(Class<?>, String, List<T>) - Method in class de.unkrig.commons.text.expression.Parser
-
- StrinG(String) - Constructor for class de.unkrig.commons.text.json.Json.StrinG
-
- stringScanner() - Static method in class de.unkrig.commons.text.expression.Scanner
-
- stringScanner() - Static method in class de.unkrig.commons.text.json.JsonScanner
-
- stringScanner() - Static method in class de.unkrig.commons.text.scanner.JavaScanner
-
- StringScanner<TT extends Enum<TT>> - Interface in de.unkrig.commons.text.scanner
-
A scanner which has a notion of an 'offset' where the previously scanned token starts.
- stringScanner() - Static method in class de.unkrig.commons.text.scanner.XmlScanner
-
- StringStream<EX extends Throwable> - Class in de.unkrig.commons.text
-
- StringStream(ProducerWhichThrows<? extends String, ? extends EX>) - Constructor for class de.unkrig.commons.text.StringStream
-
- StringStream(ProducerWhichThrows<? extends String, ? extends EX>, String) - Constructor for class de.unkrig.commons.text.StringStream
-
- StringStream.UnexpectedElementException - Exception in de.unkrig.commons.text
-
Indication that a string is not as expected.
- substitutionCount() - Method in class de.unkrig.commons.text.pattern.Substitutor
-
- substitutor(Pattern, String) - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
Creates and returns a
Substitutor
which replaces
Pattern
matches in a stream of strings through
the
replacementString.
- Substitutor<EX extends Throwable> - Class in de.unkrig.commons.text.pattern
-
Replaces pattern matches in a stream of strings ("chunks").
- Substitutor(Pattern, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends EX>) - Constructor for class de.unkrig.commons.text.pattern.Substitutor
-
- Substitutor(Pattern, FunctionWhichThrows<? super Matcher, ? extends CharSequence, ? extends EX>, int) - Constructor for class de.unkrig.commons.text.pattern.Substitutor
-
- suppress(TT) - Method in class de.unkrig.commons.text.scanner.AbstractScanner
-
Creates and returns a producer which skips tokens of the suppressedTokenType.
- suppress(Collection<TT>) - Method in class de.unkrig.commons.text.scanner.AbstractScanner
-
Creates and returns a producer which skips tokens of the suppressedTokenTypes.
- SYSTEM_PROPERTY_MATCH_REPLACER - Static variable in class de.unkrig.commons.text.pattern.PatternUtil
-
A match replacer which returns the value of the system property named by group #1 of the match.
- systemPropertyReplacer() - Static method in class de.unkrig.commons.text.pattern.PatternUtil
-
- text - Variable in class de.unkrig.commons.text.json.Json.StrinG
-
The (decoded) text of the JSON string.
- text - Variable in class de.unkrig.commons.text.scanner.AbstractScanner.Token
-
The text of this token, exactly as read from the document.
- to(Object, Class<T>) - Static method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Converts the given subject to the given targetType.
- toBoolean(Object) - Static method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- toDocumentScanner(StringScanner<TT>, Reader) - Static method in class de.unkrig.commons.text.scanner.ScannerUtil
-
- toHyphenSeparated(String) - Static method in class de.unkrig.commons.text.CamelCase
-
Deprecated.
Breaks the string up into words at upper-case letters, and the concatenates the words with hyphens.
- Token(TT, String) - Constructor for class de.unkrig.commons.text.scanner.AbstractScanner.Token
-
- Token(TT, String, String[]) - Constructor for class de.unkrig.commons.text.scanner.AbstractScanner.Token
-
- toLowerCamelCase(String) - Static method in class de.unkrig.commons.text.CamelCase
-
Deprecated.
- toLowerCamelCase() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the first word to lower case, converts the first letter of each following word to upper case, the
rest of the word to lower case, and concatenates the words.
- toLowerCaseHyphenated() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the words to lower case and concatenates them with "-"
as the separator.
- toLowerCaseUnderscored() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the words to lower case and concatenates them with "_"
as the separator.
- toPredicate(Expression, String) - Static method in class de.unkrig.commons.text.expression.ExpressionUtil
-
- toPrimitive(Object, Class<T>) - Static method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
Converts the given subject to the given primitive target type.
- toString(Object) - Static method in class de.unkrig.commons.text.expression.ExpressionEvaluator
-
- toString() - Method in enum de.unkrig.commons.text.expression.Parser.BinaryOperator
-
- toString() - Method in enum de.unkrig.commons.text.expression.Parser.UnaryOperator
-
- toString() - Method in class de.unkrig.commons.text.pattern.IncludeExclude
-
- toString() - Method in class de.unkrig.commons.text.scanner.AbstractScanner.Token
-
- toString() - Method in class de.unkrig.commons.text.scanner.AbstractScanner
-
- toString() - Method in interface de.unkrig.commons.text.scanner.DocumentScanner
-
- toString() - Method in class de.unkrig.commons.text.scanner.StatefulScanner.Rule
-
- toString(Node) - Static method in class de.unkrig.commons.text.xml.XmlUtil
-
The "
toString()
" method of class
Node
does not produce very impressing results; this methods
is a plug-in substitute.
- toUpperCamelCase(String) - Static method in class de.unkrig.commons.text.CamelCase
-
Deprecated.
- toUpperCamelCase() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the first letter of each word to upper case, the rest of each word to lower case, and concatenates
them.
- toUpperCaseHyphenated() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the words to upper case and concatenates them with "-"
as the separator.
- toUpperCaseUnderscored() - Method in interface de.unkrig.commons.text.Notations.Phrase
-
Converts the words to upper case and concatenates them with "_"
as the separator.
- toUpperCaseUnderscoreSeparated(String) - Static method in class de.unkrig.commons.text.CamelCase
-
Deprecated.
Converts the camel-case string s into a capitalized string with words separated with underscores.
- transform(CharSequence) - Method in class de.unkrig.commons.text.pattern.Substitutor
-
Substitutes all matches in the subject and returns it.
- TRUE - Static variable in interface de.unkrig.commons.text.expression.Expression
-
An expression which always evaluates to true
.
- True() - Constructor for class de.unkrig.commons.text.json.Json.True
-
- type - Variable in class de.unkrig.commons.text.scanner.AbstractScanner.Token
-
The type of this token.
- value - Variable in class de.unkrig.commons.text.json.Json.Member
-
The value of the member.
- value - Variable in class de.unkrig.commons.text.json.Json.NumbeR
-
The value of the JSON number; either a
Long
or a
Double
.
- valueOf(String) - Static method in enum de.unkrig.commons.text.AbstractPrinter.Level
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.expression.Parser.BinaryOperator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.expression.Parser.Extension
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.expression.Parser.UnaryOperator
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.expression.Scanner.TokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.json.JsonScanner.TokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.scanner.JavaScanner.TokenType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.scanner.XmlScanner.State
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum de.unkrig.commons.text.scanner.XmlScanner.TokenType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum de.unkrig.commons.text.AbstractPrinter.Level
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.expression.Parser.BinaryOperator
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.expression.Parser.Extension
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.expression.Parser.UnaryOperator
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.expression.Scanner.TokenType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.json.JsonScanner.TokenType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.scanner.JavaScanner.TokenType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.scanner.XmlScanner.State
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum de.unkrig.commons.text.scanner.XmlScanner.TokenType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- variableReference(String) - Method in class de.unkrig.commons.text.expression.Parser
-
- verbose(String, Object...) - Method in class de.unkrig.commons.text.AbstractPrinter
-
- verbose(String) - Method in class de.unkrig.commons.text.LevelFilteredPrinter
-
- verbose(String) - Method in interface de.unkrig.commons.text.Printer
-
Prints a verbose message.
- verbose(String, Object...) - Method in interface de.unkrig.commons.text.Printer
-
Prints a verbose message.
- verbose(String) - Static method in class de.unkrig.commons.text.Printers
-
Prints a verbose message on the context printer.
- verbose(String, Object...) - Static method in class de.unkrig.commons.text.Printers
-
Prints a verbose message on the context printer.
- verbose(String) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- verbose(String, Object...) - Method in class de.unkrig.commons.text.ProxyPrinter
-
- verbose(String) - Method in class de.unkrig.commons.text.WriterPrinter
-
- visit(Json.StrinG) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.NumbeR) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.ObjecT) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.Array) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.True) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.False) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.Null) - Method in interface de.unkrig.commons.text.json.Json.ValueVisitor
-
- visit(Json.StrinG) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.NumbeR) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.ObjecT) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.Array) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.True) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.False) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-
- visit(Json.Null) - Method in class de.unkrig.commons.text.json.JsonUnparseVisitor
-