@Test public void javaCode() { MatcherAssert.assertThat( new AttrCtorInitFormat().code( "Attribute", "attr" ), Matchers.is("this.attr = attr;") ); }
@Override public String code(final String type, final String name) { return new UncheckedText( new FormattedText("this.%s = %s;", name, name) ).asString(); }
AttrCtorInitFormat implements AttributeFormat { @Override public String code(final String type, final String name) { return new UncheckedText( new FormattedText("this.%s = %s;", name, name) ).asString(); } }
AttrCtorInitFormat implements AttributeFormat { @Override public String code(final String type, final String name) { return new UncheckedText( new FormattedText("this.%s = %s;", name, name) ).asString(); }  }
AttrCtorInitFormat implements AttributeFormat { @Override public String code(final String type, final String name) { return new UncheckedText( new FormattedText("this.%s = %s;", name, name) ).asString(); }  @Override String code(final String type, final String name); }
AttrCtorInitFormat implements AttributeFormat { @Override public String code(final String type, final String name) { return new UncheckedText( new FormattedText("this.%s = %s;", name, name) ).asString(); }  @Override String code(final String type, final String name);  }