Lines Matching defs:pkg
58 Package pkg;
61 PackageWriter(Package pkg, OutputStream out) throws IOException {
62 this.pkg = pkg;
65 initPackageMajver(pkg.package_majver);
123 pkg.buildGlobalConstantPool(requiredEntries);
134 int minModtime = pkg.default_modtime;
135 int maxModtime = pkg.default_modtime;
140 archiveOptions |= pkg.default_options;
142 for (File file : pkg.files) {
155 if (pkg.default_modtime == NO_MODTIME) {
157 pkg.default_modtime = minModtime;
172 pkg.default_options |= minOptions;
174 || minOptions != pkg.default_options) {
182 for (Class cls : pkg.classes) {
200 pkg.default_class_majver = (short) bestMajver;
201 pkg.default_class_minver = (short) bestMinver;
207 Package.versionStringOf(pkg.getHighestClassVersion()));
210 for (Class cls : pkg.classes) {
226 for (File file : pkg.files) {
241 for (Class cls : pkg.classes) {
263 pkg.checkVersion();
279 putMagicInt32(pkg.magic);
304 haveFiles |= (pkg.default_modtime != NO_MODTIME);
315 haveNumbers |= pkg.cp.haveNumbers();
322 assert(pkg.package_majver > 0); // caller must specify!
323 archive_header_0.putInt(pkg.package_minver);
324 archive_header_0.putInt(pkg.package_majver);
327 Package.versionStringOf(pkg.getPackageVersion()));
344 archive_header_1.putInt(pkg.default_modtime);
345 archive_header_1.putInt(pkg.files.size());
347 assert(pkg.files.isEmpty());
360 archive_header_1.putInt(pkg.getAllInnerClasses().size());
361 archive_header_1.putInt(pkg.default_class_minver);
362 archive_header_1.putInt(pkg.default_class_majver);
363 archive_header_1.putInt(pkg.classes.size());
400 int count = pkg.cp.getIndexByTag(tag).size();
405 assert(pkg.cp.getIndexByTag(tag).get(0)
425 return pkg.cp.getIndexByTag(tag);
448 IndexGroup cp = pkg.cp;
685 int numFiles = pkg.files.size();
692 for (File file : pkg.files) {
701 if (haveSizeHi || haveModtime || haveOptions || !pkg.files.isEmpty()) {
705 for (File file : pkg.files) {
712 file_modtime.putInt(file.modtime - pkg.default_modtime);
731 for (Class cls : pkg.classes) {
990 for (Class cls : pkg.classes) {
1001 for (Class cls : pkg.classes) {
1020 pkg.setAllInnerClasses(Arrays.asList(allICs));
1025 for (Class cls : pkg.classes) {
1031 for (InnerClass ic : pkg.getAllInnerClasses()) {
1056 if (ic.equals(pkg.getGlobalInnerClass(ic.thisClass))) {
1071 Class[] classes = new Class[pkg.classes.size()];
1072 pkg.classes.toArray(classes);
1318 IndexGroup cp = pkg.cp;