1 29 30 package com.caucho.quercus.env; 31 32 import com.caucho.vfs.WriteStream; 33 34 import java.io.Closeable ; 35 import java.io.IOException ; 36 import java.util.IdentityHashMap ; 37 38 41 public class ResourceValue extends Value implements Closeable { 42 public void close() 43 { 44 } 45 46 49 public Value toKey() 50 { 51 return new LongValue(System.identityHashCode(this)); 52 } 53 54 57 public String toString() 58 { 59 return "ResourceValue[]"; 60 } 61 62 @Override 63 protected void varDumpImpl(Env env, 64 WriteStream out, 65 int depth, 66 IdentityHashMap <Value, String > valueSet) 67 throws IOException 68 { 69 out.print("resource(" + toString(env) + ")"); 70 } 71 72 @Override 73 protected void printRImpl(Env env, 74 WriteStream out, 75 int depth, 76 IdentityHashMap <Value, String > valueSet) 77 throws IOException 78 { 79 out.print("resource(" + toString(env) + ")"); 80 } 81 } 82 83 | Popular Tags |