1 26 package com.yworks.yguard.obf.classfile; 27 28 import java.io.*; 29 import java.util.*; 30 31 36 public class ConstantValueAttrInfo extends AttrInfo 37 { 38 40 41 private int u2constantValueIndex; 43 44 45 47 48 protected ConstantValueAttrInfo(ClassFile cf, int attrNameIndex, int attrLength) 50 { 51 super(cf, attrNameIndex, attrLength); 52 } 53 54 55 protected String getAttrName() 56 { 57 return ATTR_ConstantValue; 58 } 59 60 61 protected void readInfo(DataInput din) throws java.io.IOException 62 { 63 u2constantValueIndex = din.readUnsignedShort(); 64 } 65 66 67 public void writeInfo(DataOutput dout) throws java.io.IOException 68 { 69 dout.writeShort(u2constantValueIndex); 70 } 71 } 72 73 | Popular Tags |