public static String toString(Composite composite) {
		StringBuilder stringBuffer = new StringBuilder();
		stringBuffer.append(composite.getPathName() + "\n");
		stringBuffer.append(getAlignmentAndPackingString(composite) + "\n");
		stringBuffer.append(getTypeName(composite) + " " + composite.getDisplayName() + " {\n");
		dumpComponents(composite, stringBuffer, "   ");
		stringBuffer.append("}\n");
		int length = composite.isZeroLength() ? 0 : composite.getLength();
		stringBuffer.append("Length: " + length + " Alignment: " + composite.getAlignment() + "\n");
		return stringBuffer.toString();
	}
Dump composite and its components for use in {@link Object#toString()} representation.
@param composite composite instance to be dumped
@return formatted dump as string
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/CompositeInternal.java