@Test public void javaCode() { MatcherAssert.assertThat( new Attribute( "Type", "name" ).java( (type, name) -> new UncheckedText( new FormattedText("%s:%s", type, name) ).asString() ), Matchers.equalTo( "Type:name" ) ); }
public String java(final AttributeFormat format) { return format.code(this.type, this.name); }
Attribute { public String java(final AttributeFormat format) { return format.code(this.type, this.name); } }
Attribute { public String java(final AttributeFormat format) { return format.code(this.type, this.name); } Attribute(final String type, final String name); }
Attribute { public String java(final AttributeFormat format) { return format.code(this.type, this.name); } Attribute(final String type, final String name); String java(final AttributeFormat format); Iterable<Directive> xml(); }
Attribute { public String java(final AttributeFormat format) { return format.code(this.type, this.name); } Attribute(final String type, final String name); String java(final AttributeFormat format); Iterable<Directive> xml();  }