KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > vladium > emma > rt > ClassPathCacheEntry


1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2  *
3  * This program and the accompanying materials are made available under
4  * the terms of the Common Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
6  *
7  * $Id: ClassPathCacheEntry.java,v 1.1.1.1 2004/05/09 16:57:43 vlad_r Exp $
8  */

9 package com.vladium.emma.rt;
10
11 import com.vladium.util.asserts.$assert;
12
13 // ----------------------------------------------------------------------------
14
/**
15  * @author Vlad Roubtsov, (C) 2003
16  */

17 public
18 final class ClassPathCacheEntry
19 {
20     // public: ................................................................
21

22     // getters not provided [the fields are final]
23

24     public final byte [] m_bytes;
25     public final String JavaDoc m_srcURL; // a String is more compact that java.net.URL
26

27     
28     public ClassPathCacheEntry (final byte [] bytes, final String JavaDoc srcURL)
29     {
30         if ($assert.ENABLED)
31         {
32             $assert.ASSERT (bytes != null, "bytes = null");
33             $assert.ASSERT (srcURL != null, "srcURL = null");
34         }
35         
36         m_bytes = bytes;
37         m_srcURL = srcURL;
38     }
39     
40     // protected: .............................................................
41

42     // package: ...............................................................
43

44     // private: ...............................................................
45

46 } // end of class
47
// ----------------------------------------------------------------------------
Popular Tags