ptolemy.util
Class ClassUtilities

java.lang.Object
  extended byptolemy.util.ClassUtilities

public class ClassUtilities
extends java.lang.Object

A collection of utilities for manipulating classes These utilities do not depend on any other ptolemy.* packages.

Since:
Ptolemy II 4.0
Version:
$Id: ClassUtilities.java,v 1.6 2004/04/13 03:48:47 cxh Exp $
Author:
Christopher Hylands
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (eal)

Method Summary
static java.lang.String lookupClassAsResource(java.lang.String necessaryClass)
          Given a dot separated classname, return the jar file or directory where the class can be found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lookupClassAsResource

public static java.lang.String lookupClassAsResource(java.lang.String necessaryClass)
Given a dot separated classname, return the jar file or directory where the class can be found.

Parameters:
necessaryClass - The dot separated class name, for example "ptolemy.kernel.util.NamedObj"
Returns:
If the class can be found as a resource, return the directory or jar file where the necessary class can be found. otherwise, return null.