us.bpsm.edn.parser
Interface TagHandler
-
- All Known Implementing Classes:
- AbstractInstantHandler, InstantToCalendar, InstantToDate, InstantToTimestamp
public interface TagHandlerWhen aParserencounters#tag someEdnValue, it uses the TagHandler registered for#tagto transformsomeEdnValuebefore including it in the results of the parse.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.Objecttransform(Tag tag, java.lang.Object originalValue)ConsumeoriginalValue, which is some edn value, returning the value to replace it.
-
-
-
Method Detail
-
transform
java.lang.Object transform(Tag tag, java.lang.Object originalValue)
ConsumeoriginalValue, which is some edn value, returning the value to replace it.- Parameters:
tag- the tag which preceded value, never null.originalValue- as parsed from the input, may be null.- Returns:
- a value to be used by the parser as the replacement for
originalValue.
-
-
DMelt 3.0 © DataMelt by jWork.ORG