⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instancefieldrecord.java

📁 专业汽车级嵌入式操作系统OSEK的源代码
💻 JAVA
字号:
package js.tinyvm;import java.io.IOException;import js.tinyvm.io.IByteWriter;import org.apache.bcel.classfile.Field;public class InstanceFieldRecord implements WritableData{   Field iField;   TinyVMType iType;   public InstanceFieldRecord (Field aEntry) throws TinyVMException   {      iField = aEntry;      iType = TinyVMType.tinyVMType(iField.getType());   }   public String getName ()   {      return iField.getName();   }   public int getLength ()   {      return 1;   }   public void dump (IByteWriter aOut) throws TinyVMException   {      try      {         aOut.writeU1((int) iType.type());      }      catch (IOException e)      {         throw new TinyVMException(e.getMessage(), e);      }   }   public int getFieldSize () throws TinyVMException   {      return iType.size();   }   public boolean equals (Object aOther)   {      if (!(aOther instanceof InstanceFieldRecord))         return false;      return ((InstanceFieldRecord) aOther).iField.equals(iField);   }   public int hashCode ()   {      return iField.hashCode();   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -