/** * Returns the type name in the JVM internal style. * For example, if the type is a nested class {@code foo.Bar.Baz}, * then {@code foo.Bar$Baz} is returned. */ public String jvmTypeName() { StringBuffer sbuf = new StringBuffer(); ClassType parent = getDeclaringClass(); if (parent != null) sbuf.append(parent.jvmTypeName()).append('$'); return toString2(sbuf); }
/** * Returns the string representation. */ public String toString() { StringBuffer sbuf = new StringBuffer(); ClassType parent = getDeclaringClass(); if (parent != null) sbuf.append(parent.toString()).append('.'); return toString2(sbuf); }
/** * Returns the string representation. */ @Override public String toString() { StringBuffer sbuf = new StringBuffer(); ClassType parent = getDeclaringClass(); if (parent != null) sbuf.append(parent.toString()).append('.'); return toString2(sbuf); }
/** * Returns the type name in the JVM internal style. * For example, if the type is a nested class {@code foo.Bar.Baz}, * then {@code foo.Bar$Baz} is returned. */ @Override public String jvmTypeName() { StringBuffer sbuf = new StringBuffer(); ClassType parent = getDeclaringClass(); if (parent != null) sbuf.append(parent.jvmTypeName()).append('$'); return toString2(sbuf); }