< prev index next > src/java.base/share/classes/jdk/internal/classfile/impl/AbstractAttributeMapper.java
Print this page
buf.writeU2(line.lineNumber());
}
}
}
+ public static final class LoadableDescriptorsMapper extends AbstractAttributeMapper<LoadableDescriptorsAttribute> {
+ public static final LoadableDescriptorsMapper INSTANCE = new LoadableDescriptorsMapper();
+
+ private LoadableDescriptorsMapper() {
+ super(NAME_LOADABLE_DESCRIPTORS, AttributeStability.CP_REFS);
+ }
+
+ @Override
+ public LoadableDescriptorsAttribute readAttribute(AttributedElement e, ClassReader cf, int p) {
+ return new BoundAttribute.BoundLoadableDescriptorsAttribute(cf, this, p);
+ }
+
+ @Override
+ protected void writeBody(BufWriter buf, LoadableDescriptorsAttribute attr) {
+ buf.writeListIndices(attr.loadableDescriptors());
+ }
+ }
+
public static final class LocalVariableTableMapper extends AbstractAttributeMapper<LocalVariableTableAttribute> {
public static final LocalVariableTableMapper INSTANCE = new LocalVariableTableMapper();
private LocalVariableTableMapper() {
super(NAME_LOCAL_VARIABLE_TABLE, AttributeStability.LABELS, true);
< prev index next >