@Test public void java() { MatcherAssert.assertThat( new CpObject( "if", new StickyList<>( new Argument.Fake("true"), new Argument.Fake("1"), new Argument.Fake("2") ) ).java(), Matchers.equalTo("new if(true, 1, 2)") ); }
public String java() { return new UncheckedText( new FormattedText( "new %s(%s)", this.name, new UncheckedText( new JoinedText( ", ", new Mapped<>(Argument::java, this.args) ) ).asString() ) ).asString(); }
CpObject { public String java() { return new UncheckedText( new FormattedText( "new %s(%s)", this.name, new UncheckedText( new JoinedText( ", ", new Mapped<>(Argument::java, this.args) ) ).asString() ) ).asString(); } }
CpObject { public String java() { return new UncheckedText( new FormattedText( "new %s(%s)", this.name, new UncheckedText( new JoinedText( ", ", new Mapped<>(Argument::java, this.args) ) ).asString() ) ).asString(); } CpObject(final String obj, final List<Argument> args); }
CpObject { public String java() { return new UncheckedText( new FormattedText( "new %s(%s)", this.name, new UncheckedText( new JoinedText( ", ", new Mapped<>(Argument::java, this.args) ) ).asString() ) ).asString(); } CpObject(final String obj, final List<Argument> args); List<Argument> arguments(); String java(); }
CpObject { public String java() { return new UncheckedText( new FormattedText( "new %s(%s)", this.name, new UncheckedText( new JoinedText( ", ", new Mapped<>(Argument::java, this.args) ) ).asString() ) ).asString(); } CpObject(final String obj, final List<Argument> args); List<Argument> arguments(); String java();  }