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