org.symcomp.openmath
Class Tools

java.lang.Object
  extended by org.symcomp.openmath.Tools

public class Tools
extends java.lang.Object

Author:
hornp

Field Summary
static java.util.HashSet<java.lang.String> keywords
           
 
Constructor Summary
Tools()
           
 
Method Summary
static java.util.List<java.lang.Class> getClassesForPackage(java.lang.String pckgname)
          Attempts to list all the classes in the specified package as determined by the context class loader
static java.util.List<java.lang.Class> getClassesForPackage(java.lang.String jarName, java.lang.String pckgname)
          Attempts to list all the classes in the specified package that are inside the given JAR file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keywords

public static java.util.HashSet<java.lang.String> keywords
Constructor Detail

Tools

public Tools()
Method Detail

getClassesForPackage

public static java.util.List<java.lang.Class> getClassesForPackage(java.lang.String pckgname)
                                                            throws java.lang.ClassNotFoundException
Attempts to list all the classes in the specified package as determined by the context class loader

Parameters:
pckgname - the package name to search
Returns:
a list of classes that exist within that package
Throws:
java.lang.ClassNotFoundException - if something went wrong

getClassesForPackage

public static java.util.List<java.lang.Class> getClassesForPackage(java.lang.String jarName,
                                                                   java.lang.String pckgname)
                                                            throws java.lang.ClassNotFoundException
Attempts to list all the classes in the specified package that are inside the given JAR file

Parameters:
jarName - name of the JAR file
pckgname - the package name to search
Returns:
a list of classes that exist within that package inside the jar
Throws:
java.lang.ClassNotFoundException - if something went wrong


Copyright © 2010. All Rights Reserved.