| Package | Description |
|---|---|
| de.vandermeer.skb.interfaces.antlr |
Helpers for ANTLR and StringTemplate objects.
|
| de.vandermeer.skb.interfaces.transformers |
Things that “are” transformers.
|
| de.vandermeer.skb.interfaces.transformers.arrays2d |
Transformers for 2-dimensional arrays.
|
| de.vandermeer.skb.interfaces.transformers.textformat |
Transformers for formatting strings.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Antlr_To_Column
A transformer that takes an ANTLR runtime object and returns an integer for the column (of the first token).
|
interface |
Antlr_To_FileName
A transformer that takes an ANTLR runtime object and returns aits souce file name (of the first token).
|
interface |
Antlr_To_Line
A transformer that takes an ANTLR runtime object and returns an integer for the line (of the first token).
|
interface |
Antlr_To_Text
Transforms ANTLR runtime objects to text.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Array_To_Collection
Transforms input provided by an
array into a collection of given type. |
interface |
Array_To_Text<T>
Transforms the input provided by an
array into text using String Templates. |
interface |
Collection_To_FirstElement<T>
Takes a collection of things and returns the first non-null element of it.
|
interface |
Integer_To_RomanLiteral
Takes an integer and returns a Roman number literal using upper case ASCII characters.
|
interface |
IsTransformer<FROM,TO>
Category of objects that represent a transformer.
|
interface |
IsTransformerArray<FROM,TO>
Category of objects that represent a transformer array.
|
interface |
Iterable_To_Collection
Transforms input provided by an
iterable into a collection of given type. |
interface |
Iterable_To_Text<T>
Transforms the input provided by an
iterable into text using String Templates. |
interface |
Iterator_To_Collection
Transforms input provided by an
iterator into a collection of given type. |
interface |
Iterator_To_Text<T>
Transforms the input provided by an
iterator into text using String Templates. |
interface |
Map_To_Text
Transforms a map into (well-formatted) text.
|
interface |
Object_To_StrBuilder
A null-safe transformer that takes an object and tries return a
StrBuilder using various strategies. |
interface |
Object_To_Target<T>
Converts an Object to a target type with several settings, for instance for null value and false value.
|
interface |
StrBuilder_To_String
Converts an
StrBuilder to a string. |
interface |
String_To_Boolean
Converts a String to a Boolean.
|
interface |
String_To_ConditionalBreak
Converts a String to a String array processing conditional line breaks.
|
interface |
TransformerArray<FROM,TO>
A transformer that uses an array of transformers for transformation,
first transformer that does something matches.
|
| Modifier and Type | Method and Description |
|---|---|
Transformer<FROM,TO>[] |
TransformerArray.getTransformers()
Returns the array of transformers used for transformations.
|
| Modifier and Type | Method and Description |
|---|---|
static <FROM,TO> TransformerArray<FROM,TO> |
TransformerArray.create(Transformer<FROM,TO>[] transformers)
Creates a new transformer array.
|
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(Iterable<T3> input,
Transformer<T1,T2> transformer,
IsCollectionStrategy<S,T2> strategy)
Converts the input
iterable to a collection applying a transformation for each input element. |
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(Iterable<T3> input,
Transformer<T1,T2> transformer,
Predicate<T3> predicate,
IsCollectionStrategy<S,T2> strategy)
Converts the input
iterable to a collection applying a predicate and a transformation for each input element. |
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(Iterator<T3> input,
Transformer<T1,T2> transformer,
IsCollectionStrategy<S,T2> strategy)
Converts the input
iterator to a collection applying a transformation for each input element. |
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(Iterator<T3> input,
Transformer<T1,T2> transformer,
Predicate<T3> predicate,
IsCollectionStrategy<S,T2> strategy)
Converts the input
iterator to a collection applying a predicate and a transformation for each input element. |
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(T3[] input,
Transformer<T1,T2> transformer,
IsCollectionStrategy<S,T2> strategy)
Converts the input
array to a collection applying a transformation for each input element. |
default <T1,T2,T3 extends T1,S extends Collection<T2>> |
ClusterElementTransformer.transform(T3[] input,
Transformer<T1,T2> transformer,
Predicate<T3> predicate,
IsCollectionStrategy<S,T2> strategy)
Converts the input
array to a collection applying a predicate and a transformation for each input element. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Array2D_To_FlipArray
Transforms a 2-dimensional array of strings into a new 2-dimensional array of strings.
|
interface |
Array2D_To_NormalizedArray
Transforms a 2-dimensional array into a normalized 2-dimensional array.
|
interface |
Array2D_To_String<T>
Transforms a 2-dimensional array into a string representation in table form, for examples for debug output.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
String_To_Centered
Converts a string to a centered string of given length.
|
interface |
String_To_Justified
Converts a string to a justified string of given length.
|
interface |
String_To_LeftPadded
Converts a string to a left-padded string of given length.
|
interface |
String_To_NoHorWs
Converts a string to a string without excessive horizontal whitespace character.
|
interface |
String_To_NoWs
Converts a string to a string without any excessive whitespace characters.
|
interface |
String_To_RightPadded
Converts a string to a right-padded string of given length.
|
interface |
Text_To_FormattedText
Swiss army knife for formatting text, with several options for alignments, formats, inserted characters, and variable width.
|
interface |
Text_To_WrappedFormat
Takes some text and returns formatted text with optionally different width for top/bottom.
|
Copyright © 2016–2017. All rights reserved.