public class DefaultStaticTypeConverter<I,O> extends java.lang.Object implements StaticTypeConverter<I,O>
| Constructor and Description |
|---|
DefaultStaticTypeConverter(java.util.function.Function<I,O> function,
ConverterMetadata metadata) |
DefaultStaticTypeConverter(java.util.function.Function<I,O> function,
java.lang.String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MetadataVisitor visitor,
int depth) |
O |
convert(I input)
Return the converted value
|
static <I> StaticTypeConverter<I,I> |
identity() |
java.lang.String |
readable(java.util.Locale locale)
Returns the human readable version of this object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmarkdown, markdown, readablepublic DefaultStaticTypeConverter(java.util.function.Function<I,O> function, java.lang.String description)
public DefaultStaticTypeConverter(java.util.function.Function<I,O> function, ConverterMetadata metadata)
public static <I> StaticTypeConverter<I,I> identity()
public O convert(I input)
StaticTypeConverterconvert in interface StaticTypeConverter<I,O>input - inputpublic void accept(MetadataVisitor visitor, int depth)
accept in interface SyntaxTreepublic java.lang.String readable(java.util.Locale locale)
SyntaxTreereadable in interface SyntaxTreelocale - the locale to useSyntaxTree.readable()