javassist.ClassPath , ClassPool#insertClassPath(ClassPath), ClassPool#appendClassPath(ClassPath)
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected String | |
| protected String | |
| protected int |
| Access | Constructor and Description |
|---|---|
| public | URLClassPath(String
host name host, int port number port, String directory name ending with "/".
It can be "/" (root directory).
It must start with "/". directory, String package name. It must end with "." (dot). packageName)Creates a search path specified with URL (http). |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | fetchClass(String
host name host, int port number port, String directory name ending with "/".
It can be "/" (root directory).
It must start with "/". directory, String fully-qualified class name classname)Reads a class file on an http server. |
| private static URLConnection | |
| public URL | Returns: null if the class file could not be obtained.a fully-qualified class name. classname)Implements javassist. Returns the URL. |
| public InputStream | Returns: null if the class file could not be found.a fully-qualified class name classname)Implements javassist. Opens a class file with http. |
| private URLConnection | |
| public String |
| directory | back to summary |
|---|---|
| protected String directory | |
| hostname | back to summary |
|---|---|
| protected String hostname | |
| packageName | back to summary |
|---|---|
| protected String packageName | |
| port | back to summary |
|---|---|
| protected int port | |
| URLClassPath | back to summary |
|---|---|
| public URLClassPath(String host, int port, String directory, String packageName) Creates a search path specified with URL (http). This search path is used only if a requested
class name starts with the name specified by http://www.javassist.org:80/java/classes/org/javassist/test/Main.class Here, we assume that If | |
| fetchClass | back to summary |
|---|---|
| public static byte[] fetchClass(String host, int port, String directory, String classname) throws IOException Reads a class file on an http server. | |
| fetchClass0 | back to summary |
|---|---|
| private static URLConnection fetchClass0(String host, int port, String filename) throws IOException | |
| find | back to summary |
|---|---|
| public URL find(String classname) Implements javassist. Returns the URL.
| |
| openClassfile | back to summary |
|---|---|
| public InputStream openClassfile(String classname) Implements javassist. Opens a class file with http.
| |
| openClassfile0 | back to summary |
|---|---|
| private URLConnection openClassfile0(String classname) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |