private static void packageSpecifier(Result sb, TypeMirror type) throws IOException
    {
        switch (type.getKind())
        {
            case DECLARED:
                DeclaredType dt = (DeclaredType) type;
                PackageElement pkg = El.getPackageOf(dt.asElement());
                sb.append(pkg.getQualifiedName().toString().replace('.', '/'));
                sb.append('/');
                break;
            default:
                throw new UnsupportedOperationException(type.getKind()+" unsupported");
        }
    }
private static void packageSpecifier ( Result sb , TypeMirror type ) throws IOException { switch ( type . getKind ( ) ) { case DECLARED : DeclaredType dt = ( DeclaredType ) type ; PackageElement pkg = El . getPackageOf ( dt . asElement ( ) ) ; sb . append ( pkg . getQualifiedName ( ) . toString ( ) . replace ( '.' , '/' ) ) ; sb . append ( '/' ) ; break ; default : throw new UnsupportedOperationException ( type . getKind ( ) + " unsupported" ) ; } }
PackageSpecifier:
Identifier / PackageSpecifier*
@param sb
@param type