/** * @see IClassFile */ @Override public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
/** * @see IClassFile */ @Override public boolean isInterface() throws JavaModelException { return getType().isInterface(); } /**
/** * @see ITypeRoot#findPrimaryType() */ public IType findPrimaryType() { IType primaryType= getType(); if (primaryType.exists()) { return primaryType; } return null; } @Override
/** * @see IClassFile */ public boolean isInterface() throws JavaModelException { return getType().isInterface(); } /**
/** * @see IClassFile */ public boolean isInterface() throws JavaModelException { return getType().isInterface(); } /**
/** * @see IClassFile */ public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
@Override public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException { return getType().getAttachedJavadoc(monitor); } /**
private static String sourceFileName(AbstractClassFile classFile) { if (classFile instanceof ModularClassFile) return TypeConstants.MODULE_INFO_FILE_NAME_STRING; else return ((BinaryType) ((ClassFile) classFile).getType()).getSourceFileName(null/*no info available*/); }
/** * @see ITypeRoot#findPrimaryType() */ @Override public IType findPrimaryType() { IType primaryType= getType(); if (primaryType.exists()) { return primaryType; } return null; } @Override
/** * @see IClassFile */ public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
/** * @see ITypeRoot#findPrimaryType() */ public IType findPrimaryType() { IType primaryType= getType(); if (primaryType.exists()) { return primaryType; } return null; } public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException {
/** * @see IClassFile */ public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
private static String sourceFileName(AbstractClassFile classFile) { if (classFile instanceof ModularClassFile) return TypeConstants.MODULE_INFO_FILE_NAME_STRING; else return ((BinaryType) ((ClassFile) classFile).getType()).getSourceFileName(null/*no info available*/); }
@Override public String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException { return getType().getAttachedJavadoc(monitor); } /**
/** * @see IClassFile */ public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
/** * @see IClassFile */ public boolean isClass() throws JavaModelException { return getType().isClass(); } /**
/** Returns the type of the top-level declaring class used to find the source code */ private IType getOuterMostEnclosingType() { IType type = getType(); IType enclosingType = type.getDeclaringType(); while (enclosingType != null) { type = enclosingType; enclosingType = type.getDeclaringType(); } return type; }
/** Returns the type of the top-level declaring class used to find the source code */ private IType getOuterMostEnclosingType() { IType type = getType(); IType enclosingType = type.getDeclaringType(); while (enclosingType != null) { type = enclosingType; enclosingType = type.getDeclaringType(); } return type; }
/** Returns the type of the top-level declaring class used to find the source code */ private IType getOuterMostEnclosingType() { IType type = getType(); IType enclosingType = type.getDeclaringType(); while (enclosingType != null) { type = enclosingType; enclosingType = type.getDeclaringType(); } return type; }
/** Returns the type of the top-level declaring class used to find the source code */ private IType getOuterMostEnclosingType() { IType type = getType(); IType enclosingType = type.getDeclaringType(); while (enclosingType != null) { type = enclosingType; enclosingType = type.getDeclaringType(); } return type; }