|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.utah.janosvm.resources.ResourceSpec
|
+--edu.utah.janosvm.resources.ClassPathSpec
Specification for the class path resource. Used to specify the
classpath for a new team. The given classpath is used to load new
classes in the team, but is not used for shared classes (those
specified via the NameSpaceSpec).
A ClassPathSpec is comprised of
Strings, one for each element. Only globally valid
class path elements (see ClassPathResource) can be used
(otherwise an ResourceException will be thrown by the team
constructor). A null or empty ClassPathSpec is valid (it implies
the new team cannot load any classes and can only use imported
classes).
If not specified, the default class path for a new Team is the full class path of the JVM.
ClassPathResource,
Team.create()| Fields inherited from class edu.utah.janosvm.resources.ResourceSpec |
found |
| Constructor Summary | |
ClassPathSpec(java.lang.String[] entries)
Construct a class path specification with the given paths. |
|
| Method Summary | |
java.lang.Object |
clone()
|
static ClassPathSpec |
current()
Get the ClassPathSpec associated with the current team. |
boolean |
equals(java.lang.Object obj)
Compare the given object with this ClassPathSpec for equality. |
protected void |
finalize()
|
java.lang.String |
getPath(int index)
Get a specific component of this classpath. |
int |
getPathCount()
Get the number of components in this classpath. |
java.lang.String[] |
getPaths()
Return a new String array of the components of the classpath. |
private void |
nativeConstructor(java.lang.String[] entries)
Constructs the native part of the class. |
private void |
nativeFinalizer()
Finalizes the native part of the class. |
java.lang.String |
toString()
|
| Methods inherited from class edu.utah.janosvm.resources.ResourceSpec |
find, nativeFind |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
| Constructor Detail |
public ClassPathSpec(java.lang.String[] entries)
ClassPathResource.entries - An array of strings specifying each part of the
classpath or null if the ClassPath is empty. Any null elements
are ignored.| Method Detail |
private void nativeConstructor(java.lang.String[] entries)
private void nativeFinalizer()
protected void finalize()
finalize in class java.lang.Objectpublic int getPathCount()
public java.lang.String getPath(int index)
index - The index of the class path to get.public java.lang.String[] getPaths()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic static ClassPathSpec current()
|
JanosVM v1.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||