use of org.apache.commons.lang3.builder.ToStringBuilder in project spring-roo by spring-projects.
the class AbstractItdTypeDetailsProvidingMetadataItem method toString.
@Override
public String toString() {
final ToStringBuilder builder = new ToStringBuilder(this);
builder.append("identifier", getId());
builder.append("valid", valid);
builder.append("aspectName", aspectName);
builder.append("governor", governorPhysicalTypeMetadata.getId());
builder.append("itdTypeDetails", itdTypeDetails);
return builder.toString();
}
use of org.apache.commons.lang3.builder.ToStringBuilder in project spring-roo by spring-projects.
the class DefaultClassOrInterfaceTypeDetails method toString.
@Override
public String toString() {
final ToStringBuilder builder = new ToStringBuilder(this);
builder.append("name", name);
builder.append("modifier", Modifier.toString(getModifier()));
builder.append("physicalTypeCategory", physicalTypeCategory);
builder.append("declaredByMetadataId", getDeclaredByMetadataId());
builder.append("declaredConstructors", declaredConstructors);
builder.append("declaredFields", declaredFields);
builder.append("declaredMethods", declaredMethods);
builder.append("enumConstants", enumConstants);
builder.append("superclass", superclass);
builder.append("extendsTypes", extendsTypes);
builder.append("implementsTypes", implementsTypes);
builder.append("annotations", getAnnotations());
builder.append("customData", getCustomData());
return builder.toString();
}
use of org.apache.commons.lang3.builder.ToStringBuilder in project spring-roo by spring-projects.
the class MethodTarget method toString.
@Override
public final String toString() {
final ToStringBuilder builder = new ToStringBuilder(this);
builder.append("target", target);
builder.append("method", method);
builder.append("remainingBuffer", remainingBuffer);
builder.append("key", key);
return builder.toString();
}
use of org.apache.commons.lang3.builder.ToStringBuilder in project spring-roo by spring-projects.
the class MemberTypeAdditions method toString.
@Override
public String toString() {
final ToStringBuilder builder = new ToStringBuilder(this);
builder.append("classOrInterfaceDetailsBuilder", classOrInterfaceDetailsBuilder);
builder.append("methodName", methodName);
builder.append("methodCall", methodCall);
return builder.toString();
}
use of org.apache.commons.lang3.builder.ToStringBuilder in project commons-lang by apache.
the class StandardToStringStyleTest method testPerson.
@Test
public void testPerson() {
final Person p = new Person();
p.name = "Suzy Queue";
p.age = 19;
p.smoker = false;
final String pBaseStr = "ToStringStyleTest.Person";
assertEquals(pBaseStr + "[name=Suzy Queue,age=19,smoker=false]", new ToStringBuilder(p).append("name", p.name).append("age", p.age).append("smoker", p.smoker).toString());
}
Aggregations