All Packages  This Package  Class Hierarchy  Class Search  Index

Class edu.utah.janos.antsr.util.ClassPathReader
java.lang.Object
   |
   +----edu.utah.janos.antsr.util.ClassPathReader

  Summary

public class  ClassPathReader
     extends java.lang.Object
     implements edu.utah.janos.antsr.util.ByteCodeReader
{
          // Fields 2
     private Hashtable classcache;
     private Vector pathcomps;

          // Constructors 2
     public ClassPathReader();
     public ClassPathReader(String);

          // Methods 2
     public byte[] readByteCode(String) throws Exception;
     public String toString();
}

This class implements the ByteCodeReader interface based on a "CLASSPATH" which can be given as a parameter.

Author:
Janos Ministry of Development




  Fields

· pathcomps

Summary  |  Top

   private Vector pathcomps

Components of this path


· classcache

Summary  |  Top
   private Hashtable classcache

Hashtable of already read classes


  Constructors

· ClassPathReader

Summary  |  Top

   public ClassPathReader() 

Use the system property 'java.class.path' as the default classpath to search.



· ClassPathReader

Summary  |  Top
   public ClassPathReader(String pathstr) 

Build a class path from the specified path string

Parameter Description
pathstr the CLASSPATH to use for future class searches.



  Methods

· readByteCode

Summary  |  Top
   public byte[] readByteCode(String classname)  throws Exception

Resolve a class name of the form foo.bar.baz Searches the classpath given to the constructor.

Parameter Description
classname fully qualified class name

Returns:
byte[] array of bytes containing .class file
Implements:
readByteCode in interface ByteCodeReader


· toString

Summary  |  Top
   public String toString() 

convert to printable form

Returns:
String describing this class path
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7