@Test public void deserializesIntoValueWithSourceLocation() { NodeMapper mapper = new NodeMapper(); Map<StringNode, Node> mappings = new HashMap<>(); mappings.put(StringNode.from("foo"), StringNode.from("foo")); SourceLocation sourceLocation = new SourceLocation("/abc/def"); Node node = new ObjectNode(mappings, sourceLocation); HasSourceLocation hasSourceLocation = mapper.deserialize(node, HasSourceLocation.class); assertThat(sourceLocation, equalTo(hasSourceLocation.sourceLocation)); }
public <T> T deserialize(Node value, Class<T> into) { return deserializeNext(value, "", into, Object.class, this); }
NodeMapper { public <T> T deserialize(Node value, Class<T> into) { return deserializeNext(value, "", into, Object.class, this); } }
NodeMapper { public <T> T deserialize(Node value, Class<T> into) { return deserializeNext(value, "", into, Object.class, this); }  }
NodeMapper { public <T> T deserialize(Node value, Class<T> into) { return deserializeNext(value, "", into, Object.class, this); }  void setSerializeNullValues(boolean serializeNullValues); boolean getSerializeNullValues(); void setWhenMissingSetter(WhenMissing whenMissing); WhenMissing getWhenMissingSetter(); void disableToNodeForClass(Class type); void enableToNodeForClass(Class type); Set<Class> getDisableToNode(); void disableFromNodeForClass(Class type); void enableFromNodeForClass(Class type); Set<Class> getDisableFromNode(); boolean getOmitEmptyValues(); void setOmitEmptyValues(boolean omitEmptyValues); Node serialize(Object object); T deserialize(Node value, Class<T> into); T deserializeInto(Node value, T objectToMutate); @SuppressWarnings("unchecked") V deserializeCollection(
            Node value,
            Class<T> into,
            Class<U> members
    ); @SuppressWarnings("unchecked") V deserializeMap(
            Node value, Class<T> into,
            Class<U> members
    ); }
NodeMapper { public <T> T deserialize(Node value, Class<T> into) { return deserializeNext(value, "", into, Object.class, this); }  void setSerializeNullValues(boolean serializeNullValues); boolean getSerializeNullValues(); void setWhenMissingSetter(WhenMissing whenMissing); WhenMissing getWhenMissingSetter(); void disableToNodeForClass(Class type); void enableToNodeForClass(Class type); Set<Class> getDisableToNode(); void disableFromNodeForClass(Class type); void enableFromNodeForClass(Class type); Set<Class> getDisableFromNode(); boolean getOmitEmptyValues(); void setOmitEmptyValues(boolean omitEmptyValues); Node serialize(Object object); T deserialize(Node value, Class<T> into); T deserializeInto(Node value, T objectToMutate); @SuppressWarnings("unchecked") V deserializeCollection(
            Node value,
            Class<T> into,
            Class<U> members
    ); @SuppressWarnings("unchecked") V deserializeMap(
            Node value, Class<T> into,
            Class<U> members
    );  }