1 package jas; 2 3 import java.io.*; 4 5 6 12 13 public class LongCP extends CP implements RuntimeConstants 14 { 15 long val; 16 17 20 public LongCP(long n) 21 { 22 uniq = ("Long: @#$" + n).intern(); 23 val = n; 24 } 25 void resolve(ClassEnv e) { return; } 26 void write(ClassEnv e, DataOutputStream out) 27 throws IOException 28 { 29 out.writeByte(CONSTANT_LONG); 30 out.writeLong(val); 31 } 32 } 33 | Popular Tags |