23 * questions. 24 */ 25 26 package com.sun.tools.classfile; 27 28 import java.io.IOException; 29 30 /** 31 * See JVMS, section 4.8.15. 32 * 33 * <p><b>This is NOT part of any supported API. 34 * If you write code that depends on this, you do so at your own risk. 35 * This code and its internal interfaces are subject to change or 36 * deletion without notice.</b> 37 */ 38 public class ModuleTarget_attribute extends Attribute { 39 ModuleTarget_attribute(ClassReader cr, int name_index, int length) throws IOException { 40 super(name_index, length); 41 os_name_index = cr.readUnsignedShort(); 42 os_arch_index = cr.readUnsignedShort(); 43 os_version_index = cr.readUnsignedShort(); 44 } 45 46 @Override 47 public <R, D> R accept(Visitor<R, D> visitor, D data) { 48 return visitor.visitModuleTarget(this, data); 49 } 50 51 public final int os_name_index; 52 public final int os_arch_index; 53 public final int os_version_index; 54 } | 23 * questions. 24 */ 25 26 package com.sun.tools.classfile; 27 28 import java.io.IOException; 29 30 /** 31 * See JVMS, section 4.8.15. 32 * 33 * <p><b>This is NOT part of any supported API. 34 * If you write code that depends on this, you do so at your own risk. 35 * This code and its internal interfaces are subject to change or 36 * deletion without notice.</b> 37 */ 38 public class ModuleTarget_attribute extends Attribute { 39 ModuleTarget_attribute(ClassReader cr, int name_index, int length) throws IOException { 40 super(name_index, length); 41 os_name_index = cr.readUnsignedShort(); 42 os_arch_index = cr.readUnsignedShort(); 43 } 44 45 @Override 46 public <R, D> R accept(Visitor<R, D> visitor, D data) { 47 return visitor.visitModuleTarget(this, data); 48 } 49 50 public final int os_name_index; 51 public final int os_arch_index; 52 } |