Class Tables
- java.lang.Object
-
- ca.cgjennings.apps.arkham.plugins.debugging.Tables
-
public class Tables extends java.lang.ObjectA registry ofTableGeneratorinstances. By registering your own generator, you can extend the list of data tables available from the debugger.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Field Summary
Fields Modifier and Type Field Description static TableGeneratorCACHESstatic TableGeneratorFONTSStandard table of font information.static TableGeneratorGAMESStandard table of games and expansions.static TableGeneratorJVMStandard table of virtual machine information.static TableGeneratorMEMORYStandard table of memory management details.static TableGeneratorPLATFORMStandard table of platform-specific information.static TableGeneratorSETTINGSStandard table of root settings.static TableGeneratorTHREADSStandard table of thread states.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InfoTablegenerate(java.lang.String name)Returns a table generator using the generator with the givenname, ornull.static TableGeneratorgetGenerator(java.lang.String name)Returns the generator with the givenname, ornullif there is no such generator.static java.lang.String[]getTableNames()Returns an array of the names of the registered generators.static java.lang.Stringregister(TableGenerator tg)Register a table.static voidunregister(TableGenerator tg)Removes a generator from the registry.
-
-
-
Field Detail
-
SETTINGS
public static final TableGenerator SETTINGS
Standard table of root settings.
-
GAMES
public static final TableGenerator GAMES
Standard table of games and expansions.
-
PLATFORM
public static final TableGenerator PLATFORM
Standard table of platform-specific information.
-
MEMORY
public static final TableGenerator MEMORY
Standard table of memory management details.
-
THREADS
public static final TableGenerator THREADS
Standard table of thread states.
-
JVM
public static final TableGenerator JVM
Standard table of virtual machine information.
-
FONTS
public static final TableGenerator FONTS
Standard table of font information.
-
CACHES
public static final TableGenerator CACHES
-
-
Method Detail
-
register
public static java.lang.String register(TableGenerator tg)
Register a table. If the table is already registered, this method has no effect. If a table with the same name is already registered, then a new unique name will be synthesized for the table based on the conflicting name.- Parameters:
tg- the generator to register- Returns:
- the name that the generator is registered under; this may be different from the name returned by the generator itself
-
unregister
public static void unregister(TableGenerator tg)
Removes a generator from the registry. There is no effect if the generator is not registered.- Parameters:
tg- the generator to unregister
-
getTableNames
public static java.lang.String[] getTableNames()
Returns an array of the names of the registered generators.- Returns:
- an array of the current generator names
-
getGenerator
public static TableGenerator getGenerator(java.lang.String name)
Returns the generator with the givenname, ornullif there is no such generator.- Parameters:
name- the name of the generator to find- Returns:
- the generator registered under
name, ornull
-
generate
public static InfoTable generate(java.lang.String name)
Returns a table generator using the generator with the givenname, ornull.- Parameters:
name- the name of the generator to use- Returns:
- a table generated with the named generator, or
null
-
-