359 return resolutionFlags;
360 }
361 }
362
363 public static final class UnboundPermittedSubclassesAttribute
364 extends UnboundAttribute<PermittedSubclassesAttribute>
365 implements PermittedSubclassesAttribute {
366 private final List<ClassEntry> permittedSubclasses;
367
368 public UnboundPermittedSubclassesAttribute(List<ClassEntry> permittedSubclasses) {
369 super(Attributes.permittedSubclasses());
370 this.permittedSubclasses = List.copyOf(permittedSubclasses);
371 }
372
373 @Override
374 public List<ClassEntry> permittedSubclasses() {
375 return permittedSubclasses;
376 }
377 }
378
379 public static final class UnboundNestMembersAttribute
380 extends UnboundAttribute<NestMembersAttribute>
381 implements NestMembersAttribute {
382 private final List<ClassEntry> memberEntries;
383
384 public UnboundNestMembersAttribute(List<ClassEntry> memberEntries) {
385 super(Attributes.nestMembers());
386 this.memberEntries = List.copyOf(memberEntries);
387 }
388
389 @Override
390 public List<ClassEntry> nestMembers() {
391 return memberEntries;
392 }
393 }
394
395 public static final class UnboundNestHostAttribute
396 extends UnboundAttribute<NestHostAttribute>
397 implements NestHostAttribute {
398 private final ClassEntry hostEntry;
|
359 return resolutionFlags;
360 }
361 }
362
363 public static final class UnboundPermittedSubclassesAttribute
364 extends UnboundAttribute<PermittedSubclassesAttribute>
365 implements PermittedSubclassesAttribute {
366 private final List<ClassEntry> permittedSubclasses;
367
368 public UnboundPermittedSubclassesAttribute(List<ClassEntry> permittedSubclasses) {
369 super(Attributes.permittedSubclasses());
370 this.permittedSubclasses = List.copyOf(permittedSubclasses);
371 }
372
373 @Override
374 public List<ClassEntry> permittedSubclasses() {
375 return permittedSubclasses;
376 }
377 }
378
379 public static final class UnboundLoadableDescriptorsAttribute
380 extends UnboundAttribute<LoadableDescriptorsAttribute>
381 implements LoadableDescriptorsAttribute {
382 private final List<Utf8Entry> loadableDescriptors;
383
384 public UnboundLoadableDescriptorsAttribute(List<Utf8Entry> loadableDescriptors) {
385 super(Attributes.loadableDescriptors());
386 this.loadableDescriptors = List.copyOf(loadableDescriptors);
387 }
388
389 @Override
390 public List<Utf8Entry> loadableDescriptors() {
391 return loadableDescriptors;
392 }
393 }
394
395 public static final class UnboundNestMembersAttribute
396 extends UnboundAttribute<NestMembersAttribute>
397 implements NestMembersAttribute {
398 private final List<ClassEntry> memberEntries;
399
400 public UnboundNestMembersAttribute(List<ClassEntry> memberEntries) {
401 super(Attributes.nestMembers());
402 this.memberEntries = List.copyOf(memberEntries);
403 }
404
405 @Override
406 public List<ClassEntry> nestMembers() {
407 return memberEntries;
408 }
409 }
410
411 public static final class UnboundNestHostAttribute
412 extends UnboundAttribute<NestHostAttribute>
413 implements NestHostAttribute {
414 private final ClassEntry hostEntry;
|