protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
@Override protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } @Override
protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
protected void toStringName(StringBuffer buffer) { if (getElementName().length() > 0) super.toStringName(buffer); else buffer.append("<anonymous>"); //$NON-NLS-1$ } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
/** * Returns the type with the given <code>typeName</code>. Returns inner classes * as well. */ protected IType getType(String typeName) { if (typeName.length() == 0) { IJavaElement classFile = this.binaryType.getParent(); String classFileName = classFile.getElementName(); StringBuffer newClassFileName = new StringBuffer(); int lastDollar = classFileName.lastIndexOf('$'); for (int i = 0; i <= lastDollar; i++) newClassFileName.append(classFileName.charAt(i)); newClassFileName.append(Integer.toString(this.anonymousCounter)); PackageFragment pkg = (PackageFragment) classFile.getParent(); return new BinaryType(new ClassFile(pkg, newClassFileName.toString()), typeName); } else if (this.binaryType.getElementName().equals(typeName)) return this.binaryType; else return this.binaryType.getType(typeName); }
/** * Returns the type with the given <code>typeName</code>. Returns inner classes * as well. */ protected IType getType(String typeName) { if (typeName.length() == 0) { IJavaElement classFile = this.binaryType.getParent(); String classFileName = classFile.getElementName(); StringBuffer newClassFileName = new StringBuffer(); int lastDollar = classFileName.lastIndexOf('$'); for (int i = 0; i <= lastDollar; i++) newClassFileName.append(classFileName.charAt(i)); newClassFileName.append(Integer.toString(this.anonymousCounter)); PackageFragment pkg = (PackageFragment) classFile.getParent(); return new BinaryType(new ClassFile(pkg, newClassFileName.toString()), typeName); } else if (this.binaryType.getElementName().equals(typeName)) return this.binaryType; else return ((this.typeDepth <= 1) ? this.binaryType : this.types[this.typeDepth - 1]).getType(typeName); }
/** * Returns the type with the given <code>typeName</code>. Returns inner classes * as well. */ protected IType getType(String typeName) { if (typeName.length() == 0) { IJavaElement classFile = this.binaryType.getParent(); String classFileName = classFile.getElementName(); StringBuffer newClassFileName = new StringBuffer(); int lastDollar = classFileName.lastIndexOf('$'); for (int i = 0; i <= lastDollar; i++) newClassFileName.append(classFileName.charAt(i)); newClassFileName.append(Integer.toString(this.anonymousCounter)); PackageFragment pkg = (PackageFragment) classFile.getParent(); return new BinaryType(new ClassFile(pkg, newClassFileName.toString()), typeName); } else if (this.binaryType.getElementName().equals(typeName)) return this.binaryType; else return this.binaryType.getType(typeName); }
/** * Returns the type with the given <code>typeName</code>. Returns inner classes * as well. */ protected IType getType(String typeName) { if (typeName.length() == 0) { IJavaElement classFile = this.binaryType.getParent(); String classFileName = classFile.getElementName(); StringBuffer newClassFileName = new StringBuffer(); int lastDollar = classFileName.lastIndexOf('$'); for (int i = 0; i <= lastDollar; i++) newClassFileName.append(classFileName.charAt(i)); newClassFileName.append(Integer.toString(this.anonymousCounter)); PackageFragment pkg = (PackageFragment) classFile.getParent(); return new BinaryType(new ClassFile(pkg, newClassFileName.toString()), typeName); } else if (this.binaryType.getElementName().equals(typeName)) return this.binaryType; else return this.binaryType.getType(typeName); }
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } protected void toStringName(StringBuffer buffer) {
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } protected void toStringName(StringBuffer buffer) {
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } protected void toStringName(StringBuffer buffer) {
@Override protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } @Override
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } protected void toStringName(StringBuffer buffer) {
protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { buffer.append(tabString(tab)); if (info == null) { toStringName(buffer); buffer.append(" (not open)"); //$NON-NLS-1$ } else if (info == NO_INFO) { toStringName(buffer); } else { try { if (isAnnotation()) { buffer.append("@interface "); //$NON-NLS-1$ } else if (isEnum()) { buffer.append("enum "); //$NON-NLS-1$ } else if (isInterface()) { buffer.append("interface "); //$NON-NLS-1$ } else { buffer.append("class "); //$NON-NLS-1$ } toStringName(buffer); } catch (JavaModelException e) { buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$ } } } protected void toStringName(StringBuffer buffer) {
if (dollar == -1) { return getElementName() + Util.defaultJavaExtension(); return getElementName() + Util.defaultJavaExtension();
if (dollar == -1) { return getElementName() + Util.defaultJavaExtension(); return getElementName() + Util.defaultJavaExtension();
if (dollar == -1) { return getElementName() + Util.defaultJavaExtension(); return getElementName() + Util.defaultJavaExtension();
if (dollar == -1) { return getElementName() + Util.defaultJavaExtension(); return getElementName() + Util.defaultJavaExtension();