gate.util
Class Tools
java.lang.Object
|
+--gate.util.Tools
- public class Tools
- extends Object
Field Summary |
private static boolean |
DEBUG
Debug flag |
(package private) static long |
sym
|
private static boolean |
unicodeEnabled
Does Gate know about Unicode? |
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, registerNatives, toString, wait, wait, wait |
DEBUG
private static final boolean DEBUG
- Debug flag
sym
static long sym
unicodeEnabled
private static boolean unicodeEnabled
- Does Gate know about Unicode?
Tools
public Tools()
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:
parent
- the class for which subclasses are sought- Returns:
- a list of
Class
objects.