public class ToMapPrintingVisitor extends PrintingVisitor
PrintingVisitor, but instead of printing it to
System.out, it will store the messages in a Map, identified by the property path of the
visited node. The Map can later be accessed via getMessages() to provide a way to
post-process the collected information.| Constructor and Description |
|---|
ToMapPrintingVisitor(Object working,
Object base) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected String |
differenceToString(DiffNode node,
Object base,
Object modified) |
String |
getMessage(NodePath path) |
Map<NodePath,String> |
getMessages() |
String |
getMessagesAsString() |
boolean |
hasMessages() |
protected void |
print(String text) |
String |
toString() |
filter, nodeprotected void print(String text)
print in class PrintingVisitorprotected String differenceToString(DiffNode node, Object base, Object modified)
differenceToString in class PrintingVisitorpublic void clear()
public boolean hasMessages()
public String getMessagesAsString()
Copyright © 2016. All rights reserved.