JanosVM v1.0 API

edu.utah.janosvm.resources
Class NativeSpec

java.lang.Object
  |
  +--edu.utah.janosvm.resources.ResourceSpec
        |
        +--edu.utah.janosvm.resources.NativeSpec

public final class NativeSpec
extends ResourceSpec

Specification for the native library resource.

Author:
Tim Stack, Utah Janos Team

Fields inherited from class edu.utah.janosvm.resources.ResourceSpec
found
 
Constructor Summary
NativeSpec(java.lang.String[] entries)
          Construct a class path specification with given paths.
 
Method Summary
 java.lang.Object clone()
           
static NativeSpec current()
           
 boolean equals(java.lang.Object obj)
           
protected  void finalize()
           
 java.lang.String getPath(int index)
           
 int getPathCount()
           
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

NativeSpec

public NativeSpec(java.lang.String[] entries)
Construct a class path specification with given paths.
Parameters:
entries - An array of strings specifying each part of the native library path.
Method Detail

nativeConstructor

private void nativeConstructor(java.lang.String[] entries)
Constructs the native part of the class.

nativeFinalizer

private void nativeFinalizer()
Finalizes the native part of the class.

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

getPathCount

public int getPathCount()
Returns:
The number of paths in the spec.

getPath

public java.lang.String getPath(int index)
Parameters:
index - The index of the lib path to get.
Returns:
The lib path at the given index.

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

current

public static NativeSpec current()
Returns:
The NativeSpec associated with the current team.

JanosVM v1.0 API

This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003