Artifact f984cff77d020e2236cb1e86fc7cc310c79059c5000fd80211693aaff00cabe9:
- Executable file
r37/lisp/csl/jlisp/CONSTANT_NameAndType_info.java
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1355) [annotate] [blame] [check-ins using] [more...]
//created 02/02/02 import java.io.*; public class CONSTANT_NameAndType_info extends Cp_info { public static void main(String[] args) throws IOException { short nidx = (short)0x5; short didx = (short)0x6; CONSTANT_NameAndType_info cnt = new CONSTANT_NameAndType_info(nidx,didx); cnt.printBytes(cnt.dumpBytes()); Jlisp.println("\n"); short nidx2 = (short)0xb; short didx2 = (short)0xc; CONSTANT_NameAndType_info cnt2 = new CONSTANT_NameAndType_info(nidx2,didx2); cnt2.printBytes(cnt2.dumpBytes()); Jlisp.println("\n"); } short name_index; short descriptor_index; //constructor CONSTANT_NameAndType_info(short nameIndex, short desIndex) throws IOException { tag = CONSTANT_NameAndType; name_index = nameIndex; descriptor_index = desIndex; //below is the toInfo() method of Code_Attribute.java byte[][] infoTemp = new byte[2][0]; infoTemp[0] = shortToByteArray(name_index); infoTemp[1] = shortToByteArray(descriptor_index); info = new byte[4]; info = flatBytes(infoTemp); } } // end of CONSTANT_NameAndType_info.java