@Test public void shouldReturnSpecifiedMapping() { final ObjectCreation.Mapping<?> mapping = new ObjectCreation(new ObjectCreation.FieldAssignment("name", new ConstantExpression( TextNode.valueOf("testperson"))), new ObjectCreation.FieldAssignment("age", new ConstantExpression( IntNode.valueOf(30)))).getMapping(1); Assert.assertEquals(new ObjectCreation.FieldAssignment("age", new ConstantExpression(IntNode.valueOf(30))), mapping); }
public Mapping<?> getMapping(final int index) { return this.mappings.get(index); }
ObjectCreation extends EvaluationExpression { public Mapping<?> getMapping(final int index) { return this.mappings.get(index); } }
ObjectCreation extends EvaluationExpression { public Mapping<?> getMapping(final int index) { return this.mappings.get(index); } ObjectCreation();  ObjectCreation(final Mapping<?>... mappings);  ObjectCreation(final List<Mapping<?>> mappings); }
ObjectCreation extends EvaluationExpression { public Mapping<?> getMapping(final int index) { return this.mappings.get(index); } ObjectCreation();  ObjectCreation(final Mapping<?>... mappings);  ObjectCreation(final List<Mapping<?>> mappings); ObjectCreation addMapping(final Mapping<?> mapping); ObjectCreation addMapping(final PathSegmentExpression target, final EvaluationExpression expression); ObjectCreation addMapping(final String target, final EvaluationExpression expression); @Override void appendAsString(final Appendable appendable); @Override boolean equals(final Object obj); @Override IJsonNode evaluate(final IJsonNode node); Mapping<?> getMapping(final int index); List<Mapping<?>> getMappings(); int getMappingSize(); @Override int hashCode(); @Override ChildIterator iterator(); }
ObjectCreation extends EvaluationExpression { public Mapping<?> getMapping(final int index) { return this.mappings.get(index); } ObjectCreation();  ObjectCreation(final Mapping<?>... mappings);  ObjectCreation(final List<Mapping<?>> mappings); ObjectCreation addMapping(final Mapping<?> mapping); ObjectCreation addMapping(final PathSegmentExpression target, final EvaluationExpression expression); ObjectCreation addMapping(final String target, final EvaluationExpression expression); @Override void appendAsString(final Appendable appendable); @Override boolean equals(final Object obj); @Override IJsonNode evaluate(final IJsonNode node); Mapping<?> getMapping(final int index); List<Mapping<?>> getMappings(); int getMappingSize(); @Override int hashCode(); @Override ChildIterator iterator(); static final ObjectCreation CONCATENATION; }