/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4853450 5031168
* @summary PackageDeclaration tests
* @library ../../lib
* @compile -source 1.5 PackageDecl.java
*/
/**
* Sed Quis custodiet ipsos custodes?
*/
public PackageDecl() {
}
(new PackageDecl()).run();
}
protected void init() {
}
// Declaration methods
public void visitTypeDeclaration(TypeDeclaration t) {
}
public void visitPackageDeclaration(PackageDeclaration p) {
}
});
return res;
}
return pkg1.getAnnotationMirrors();
}
" A doc comment it be, and wonderous to behold.\n")
return pkg1.getDocComment();
}
"An HTML file it be, and wonderous to behold.\n\n")
@Ignore("Not yet supported")
return pkg2.getDocComment();
}
return pkg1.getModifiers();
}
}
}
@Ignore("Not yet supported")
}
return pkg1.getSimpleName();
}
return pkg2.getSimpleName();
}
// PackageDeclaration methods
return pkg1.getAnnotationTypes();
}
return pkg1.getClasses();
}
}
return pkg1.getInterfaces();
}
return pkg1.getQualifiedName();
}
return pkg2.getQualifiedName();
}
}