Package org.aspectj.apache.bcel.util
Klasse ClassPath
java.lang.Object
org.aspectj.apache.bcel.util.ClassPath
- Alle implementierten Schnittstellen:
Serializable
Responsible for loading (class) files from the CLASSPATH. Inspired by
sun.tools.ClassPath.
- Autor:
- M. Dahm, Mario Ivankovits, Andy Clement
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic interface
Contains information about file/ZIP entry of the Java class. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
byte[]
byte[]
getClassFile
(String name) getClassFile
(String name, String suffix) static final String
Checks for class path components in the following properties: "java.class.path", "sun.boot.class.path", "java.ext.dirs"getInputStream
(String name) getInputStream
(String name, String suffix) Return stream for class or resource on CLASSPATH.static ClassPath
int
hashCode()
toString()
-
Konstruktordetails
-
ClassPath
Search for classes in given path. -
ClassPath
Veraltet.Use SYSTEM_CLASS_PATH constantSearch for classes in CLASSPATH.
-
-
Methodendetails
-
getSystemClassPath
-
toString
-
hashCode
public int hashCode() -
equals
-
getClassPath
Checks for class path components in the following properties: "java.class.path", "sun.boot.class.path", "java.ext.dirs"- Gibt zurück:
- class path as used by default by BCEL
-
getInputStream
- Parameter:
name
- fully qualified class name, e.g. java.lang.String- Gibt zurück:
- input stream for class
- Löst aus:
IOException
-
getInputStream
Return stream for class or resource on CLASSPATH.- Parameter:
name
- fully qualified file name, e.g. java/lang/Stringsuffix
- file name ends with suff, e.g. .java- Gibt zurück:
- input stream for file on class path
- Löst aus:
IOException
-
getClassFile
- Parameter:
name
- fully qualified file name, e.g. java/lang/Stringsuffix
- file name ends with suff, e.g. .java- Gibt zurück:
- class file for the java class
- Löst aus:
IOException
-
getClassFile
- Parameter:
name
- fully qualified class name, e.g. java.lang.String- Gibt zurück:
- input stream for class
- Löst aus:
IOException
-
getBytes
- Parameter:
name
- fully qualified file name, e.g. java/lang/Stringsuffix
- file name ends with suffix, e.g. .java- Gibt zurück:
- byte array for file on class path
- Löst aus:
IOException
-
getBytes
- Gibt zurück:
- byte array for class
- Löst aus:
IOException
-
getPath
- Parameter:
name
- name of file to search for, e.g. java/lang/String.java- Gibt zurück:
- full (canonical) path for file
- Löst aus:
IOException
-
getPath
- Parameter:
name
- name of file to search for, e.g. java/lang/Stringsuffix
- file name suffix, e.g. .java- Gibt zurück:
- full (canonical) path for file, if it exists
- Löst aus:
IOException
-