<s> package org . eclipse . jdt . core . search ; import org . eclipse . jdt . core . * ; public abstract class TypeNameMatch { public abstract int getAccessibility ( ) ; public String getFullyQualifiedName ( ) { return getType ( ) . getFullyQualifiedName ( '.' ) ; } public abstract int getModifiers ( ) ; public IPackageFragmentRoot getPackageFragmentRoot ( ) { return ( IPackageFragmentRoot ) getType ( ) . getAncestor ( IJavaElement . PACKAGE_FRAGMENT_ROOT ) ; } public String getPackageName ( ) { return getType ( ) . getPackageFragment ( ) . getElementName ( ) ; } public String getSimpleTypeName ( ) { return getType ( ) . getElementName ( ) ; } public abstract IType getType ( ) ; public String getTypeContainerName ( ) { IType outerType = getType ( ) . getDeclaringType ( ) ; if ( outerType != null ) { return outerType . getFullyQualifiedName ( '.' ) ; } else { return getType ( ) . getPackageFragment ( ) . getElementName ( ) ; } } public String getTypeQualifiedName ( ) { return getType ( ) . getTypeQualifiedName ( '.' ) ; } } </s>