final Map<String, Object> resultDecors = elem.astGetDecorations(); for (final Node superNode : info.getSuperNodes()) { .astGetDecorations().entrySet()) { final String name = entry.getKey(); final Object superValue = entry.getValue();
final Map<String, Object> decorations = node.astGetDecorations(); for (final Map.Entry<String, Object> entry : decorations.entrySet()) { final Object decoration = entry.getValue();
@SuppressWarnings("unchecked") private static <T extends Node> T cloneNodeState(final T node) { // first create a new node instance final T newNode = (T) node.astNewInstance(); // copy node attributes newNode.astSetAttributes(node.astGetAttributes()); // copy node decoration newNode.astSetDecorations(node.astGetDecorations()); // copy source newNode.astSetSource(node.astGetSource()); return newNode; }