public abstract class AbstractInstantHandler extends Object implements TagHandler
#inst
representations.| Constructor and Description |
|---|
AbstractInstantHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
transform(ParsedInstant pi)
This will be called by the Parser when parsing an
#inst value. |
Object |
transform(Tag tag,
Object value)
Consume
originalValue, which is some edn value,
returning the value to replace it. |
public final Object transform(Tag tag, Object value)
TagHandleroriginalValue, which is some edn value,
returning the value to replace it.transform in interface TagHandlertag - the tag which preceded value, never null.value - as parsed from the input, may be null.originalValue.protected abstract Object transform(ParsedInstant pi)
#inst value.
Implement it to return an instance of your chosen instant representation.pi - The contents fields of string following the #inst tag
as a ParsedInstant.Copyright © 2019. All rights reserved.