JML

org.jmlspecs.racwrap.runner
Class Location

java.lang.Object
  extended byorg.jmlspecs.racwrap.runner.Location

public class Location
extends Object

Location contains all pertinent information to get at a class in the filesystem (or in a Jar file).


Field Summary
private  String jarLocation
           
private  String location
          location is where the class is located.
private  Node node
           
 
Constructor Summary
Location(Node n)
           
 
Method Summary
 String getJarLocation()
          jarLocation is where the jarfile containing the class is located.
 String getLocation()
          location is where the class is located.
 Node getNode()
           
 void setJarLocation(String loc)
           
 void setLocation(String loc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

private Node node

jarLocation

private String jarLocation

location

private String location
location is where the class is located. If the class is in a jar, this is relative to the jar file. If the class is in the filesystem, this is an absolute path.

Constructor Detail

Location

public Location(Node n)
Method Detail

getJarLocation

public String getJarLocation()
jarLocation is where the jarfile containing the class is located.

Returns:
null if the class is not in a Jar file (ie a file in the filesystem)

getLocation

public String getLocation()
location is where the class is located. If the class is in a jar, this is relative to the jar file. If the class is in the filesystem, this is an absolute path.


setJarLocation

public void setJarLocation(String loc)

setLocation

public void setLocation(String loc)

getNode

public Node getNode()

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.