Class Tables
- java.lang.Object
-
- ca.cgjennings.apps.arkham.plugins.debugging.Tables
-
public class Tables extends java.lang.Object
A registry ofTableGenerator
instances. 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 TableGenerator
CACHES
static TableGenerator
FONTS
Standard table of font information.static TableGenerator
GAMES
Standard table of games and expansions.static TableGenerator
JVM
Standard table of virtual machine information.static TableGenerator
MEMORY
Standard table of memory management details.static TableGenerator
PLATFORM
Standard table of platform-specific information.static TableGenerator
SETTINGS
Standard table of root settings.static TableGenerator
THREADS
Standard table of thread states.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InfoTable
generate(java.lang.String name)
Returns a table generator using the generator with the givenname
, ornull
.static TableGenerator
getGenerator(java.lang.String name)
Returns the generator with the givenname
, ornull
if there is no such generator.static java.lang.String[]
getTableNames()
Returns an array of the names of the registered generators.static java.lang.String
register(TableGenerator tg)
Register a table.static void
unregister(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
, ornull
if 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
-
-