GATE
Version 3.1-2270

gate.util
Class Tools

java.lang.Object
  extended by gate.util.Tools

public class Tools
extends Object


Constructor Summary
Tools()
           
 
Method Summary
static List findSubclasses(Class parentClass)
          Finds all subclasses of a given class or interface.
static Long gensym()
          Returns a Long wich is unique during the current run.
static Long genTime()
           
static boolean isUnicodeEnabled()
          Checks wheter Gate is Unicode enabled
static void setUnicodeEnabled(boolean value)
          Specifies whether Gate should or shouldn't know about Unicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

gensym

public static Long gensym()
Returns a Long wich is unique during the current run. Maybe we should use serializaton in order to save the state on System.exit...


genTime

public static Long genTime()

setUnicodeEnabled

public static void setUnicodeEnabled(boolean value)
Specifies whether Gate should or shouldn't know about Unicode


isUnicodeEnabled

public static boolean isUnicodeEnabled()
Checks wheter Gate is Unicode enabled


findSubclasses

public static List findSubclasses(Class parentClass)
Finds all subclasses of a given class or interface. It will only search within the loaded packages and not the entire classpath.

Parameters:
parentClass - the class for which subclasses are sought
Returns:
a list of Class objects.

GATE
Version 3.1-2270