Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ClassPath Class Reference

List of all members.

Public Methods

 ClassPath ()
 ClassPath (String class_path)
byte[] getBytes (String name) throws IOException
byte[] getBytes (String name, String suffix) throws IOException
ClassFile getClassFile (String name) throws IOException
ClassFile getClassFile (String name, String suffix) throws IOException
InputStream getInputStream (String name) throws IOException
InputStream getInputStream (String name, String suffix) throws IOException
String getPath (String name) throws IOException
String getPath (String name, String suffix) throws IOException
 ClassPath ()
 ClassPath (String class_path)
byte[] getBytes (String name) throws IOException
byte[] getBytes (String name, String suffix) throws IOException
ClassFile getClassFile (String name) throws IOException
ClassFile getClassFile (String name, String suffix) throws IOException
InputStream getInputStream (String name) throws IOException
InputStream getInputStream (String name, String suffix) throws IOException
String getPath (String name) throws IOException
String getPath (String name, String suffix) throws IOException

Static Public Methods

String get (int index)
int length ()

Static Private Methods

final String getClassPath ()
final String getClassPath ()
final void getPathComponents (String path, Vector list)
 ClassPath ()

Private Attributes

PathEntry[] paths
PathEntry[] paths

Static Private Attributes

String[] classPath

Detailed Description

Responsible for loading (class) files from CLASSPATH. Inspired by sun.tools.ClassPath.

Version:
Id:
ClassPath.java,v 1.1.1.1 2002/01/24 03:43:59 pserver Exp
Author:
M. Dahm

Definition at line 14 of file lib/jpf/de/fub/bytecode/ClassPath.java.


Constructor & Destructor Documentation

ClassPath::ClassPath   [inline]
 

Search for classes in CLASSPATH.

Definition at line 85 of file lib/jpf/de/fub/bytecode/ClassPath.java.

ClassPath::ClassPath String   class_path [inline]
 

Search for classes in given path.

Definition at line 91 of file lib/jpf/de/fub/bytecode/ClassPath.java.

ClassPath::ClassPath   [inline]
 

Search for classes in CLASSPATH.

Definition at line 85 of file src/de/fub/bytecode/ClassPath.java.

ClassPath::ClassPath String   class_path [inline]
 

Search for classes in given path.

Definition at line 91 of file src/de/fub/bytecode/ClassPath.java.


Member Function Documentation

byte [] ClassPath::getBytes String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suffix, e.g. .java
Returns:
byte array for file on class path

Definition at line 130 of file src/de/fub/bytecode/ClassPath.java.

byte [] ClassPath::getBytes String   name [inline]
 

Returns:
byte array for class

Definition at line 122 of file src/de/fub/bytecode/ClassPath.java.

byte [] ClassPath::getBytes String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suffix, e.g. .java
Returns:
byte array for file on class path

Definition at line 130 of file lib/jpf/de/fub/bytecode/ClassPath.java.

byte [] ClassPath::getBytes String   name [inline]
 

Returns:
byte array for class

Definition at line 122 of file lib/jpf/de/fub/bytecode/ClassPath.java.

Referenced by getBytes().

ClassFile ClassPath::getClassFile String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suff, e.g. .java
Returns:
class file for the java class

Definition at line 155 of file src/de/fub/bytecode/ClassPath.java.

ClassFile ClassPath::getClassFile String   name [inline]
 

Parameters:
name   fully qualified class name, e.g. java.lang.String
Returns:
input stream for class

Definition at line 147 of file src/de/fub/bytecode/ClassPath.java.

ClassFile ClassPath::getClassFile String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suff, e.g. .java
Returns:
class file for the java class

Definition at line 155 of file lib/jpf/de/fub/bytecode/ClassPath.java.

ClassFile ClassPath::getClassFile String   name [inline]
 

Parameters:
name   fully qualified class name, e.g. java.lang.String
Returns:
input stream for class

Definition at line 147 of file lib/jpf/de/fub/bytecode/ClassPath.java.

Referenced by getClassFile(), getInputStream(), getPath(), and Repository::lookupClassFile().

InputStream ClassPath::getInputStream String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suff, e.g. .java
Returns:
input stream for file on class path

Definition at line 214 of file src/de/fub/bytecode/ClassPath.java.

InputStream ClassPath::getInputStream String   name [inline]
 

Parameters:
name   fully qualified class name, e.g. java.lang.String
Returns:
input stream for class

Definition at line 206 of file src/de/fub/bytecode/ClassPath.java.

InputStream ClassPath::getInputStream String   name,
String   suffix
[inline]
 

Parameters:
name   fully qualified file name, e.g. java/lang/String
suffix   file name ends with suff, e.g. .java
Returns:
input stream for file on class path

Definition at line 190 of file lib/jpf/de/fub/bytecode/ClassPath.java.

InputStream ClassPath::getInputStream String   name [inline]
 

Parameters:
name   fully qualified class name, e.g. java.lang.String
Returns:
input stream for class

Definition at line 182 of file lib/jpf/de/fub/bytecode/ClassPath.java.

Referenced by getBytes(), getInputStream(), and Repository::lookupClass().

String ClassPath::getPath String   name,
String   suffix
[inline]
 

Parameters:
name   name of file to search for, e.g. java/lang/String
suffix   file name suffix, e.g. .java
Returns:
full (canonical) path for file, if it exists

Definition at line 237 of file src/de/fub/bytecode/ClassPath.java.

String ClassPath::getPath String   name [inline]
 

Parameters:
name   name of file to search for, e.g. java/lang/String.java
Returns:
full (canonical) path for file

Definition at line 221 of file src/de/fub/bytecode/ClassPath.java.

String ClassPath::getPath String   name,
String   suffix
[inline]
 

Parameters:
name   name of file to search for, e.g. java/lang/String
suffix   file name suffix, e.g. .java
Returns:
full (canonical) path for file, if it exists

Definition at line 213 of file lib/jpf/de/fub/bytecode/ClassPath.java.

String ClassPath::getPath String   name [inline]
 

Parameters:
name   name of file to search for, e.g. java/lang/String.java
Returns:
full (canonical) path for file

Definition at line 197 of file lib/jpf/de/fub/bytecode/ClassPath.java.

Referenced by getPath().


The documentation for this class was generated from the following files:
Generated at Thu Feb 7 07:06:33 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001