public interface FFDCSelfIntrospectable
introspectSelf
method to output the object's current state.Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
introspectSelf()
Returns String representation(s) of the object's state.
|
java.lang.String[] introspectSelf()
Implementation of this method should return a String[]. For example:
public String[] introspectSelf() {
StringBuffer introspectBuffer = new StringBuffer();
String[] returnValue = new String[2];
introspectBuffer.append("variableName1 = ");
introspectBuffer.append(variableName1);
returnValue[0] = new String(introspectBuffer);
introspectBuffer.setLength(0);
introspectBuffer.append("variableName2 = ");
introspectBuffer.append(variableName2);
returnValue[1] = new String(introspectBuffer);
return returnValue;
}