Java Code Examples for org.apache.commons.lang3.builder.ToStringStyle#JSON_STYLE

The following examples show how to use org.apache.commons.lang3.builder.ToStringStyle#JSON_STYLE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GnuDemanglerParser.java    From ghidra with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
	ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.JSON_STYLE);
	return builder
			.append("name", name)
			.append("prefix", prefix)
			.append("type", type)
			.append("demangled", demangled)
			.toString();
}
 
Example 2
Source File: GnuDemanglerParser.java    From ghidra with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
	ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.JSON_STYLE);
	return builder
			.append("text", text)
			.append("paramStart", paramStart)
			.append("paramEnd", paramEnd)
			.toString();
}
 
Example 3
Source File: GnuDemanglerParser.java    From ghidra with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
	ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.JSON_STYLE);
	return builder
			.append("fullText", fullText)
			.append("params", params)
			.append("trailing", trailing)
			.toString();
}
 
Example 4
Source File: NMProfileManager.java    From incubator-myriad with Apache License 2.0 5 votes vote down vote up
@Override
public String toString() {
  ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.JSON_STYLE);

  for (Map.Entry<String, NMProfile> profile : profiles.entrySet()) {
    NMProfile value = profile.getValue();
    builder.append("name", value.getName());
    builder.append("cpus", value.getCpus());
    builder.append("memory", value.getMemory());
  }

  return builder.toString();
}
 
Example 5
Source File: LinkableItem.java    From blackduck-alert with Apache License 2.0 4 votes vote down vote up
@Override
public String toString() {
    ReflectionToStringBuilder builder = new ReflectionToStringBuilder(this, ToStringStyle.JSON_STYLE);
    builder.setExcludeFieldNames(EXCLUDED_FIELDS);
    return builder.toString();
}