|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Main
public abstract class Main
This is the abstract main class for all starter classes. Moreover, it offers some utility methods which are used throughout the project.
Field Summary | |
---|---|
Context |
context
Database Context. |
Method Summary | |
---|---|
static String |
bug(Object... ext)
Prints some information for an unexpected exception. |
static void |
debug(Object str,
Object... ext)
Global method for printing debug information if the Prop.debug flag is set. |
static boolean |
debug(Throwable ex)
Global method for printing the exception stack trace if the Prop.debug flag is set. |
static void |
err(String string,
Object... ext)
Global method for printing information to the standard output. |
static void |
errln(Object obj,
Object... ext)
Global method for printing information to the standard output. |
static void |
gc(Performance perf)
Global method for garbage collecting and printing performance information if the Prop.debug flag is set. |
static byte[] |
inf(Object str,
Object... ext)
Global method, replacing all % characters (see TokenBuilder.add(Object, Object...) for details. |
static String |
info(Object str,
Object... ext)
Global method, replacing all % characters (see TokenBuilder.add(Object, Object...) for details. |
static String |
name(Class<?> o)
Returns the class name of the specified object. |
static String |
name(Object o)
Returns the class name of the specified object. |
static Object |
notexpected(Object... ext)
Throws a runtime exception for an unexpected exception. |
static Object |
notimplemented(Object... ext)
Throws a runtime exception for an unimplemented method. |
static void |
out(Object str,
Object... ext)
Global method for printing information to the standard output. |
static void |
outln()
Global method for printing a newline. |
static void |
outln(Object str,
Object... ext)
Global method for printing information to the standard output. |
static String |
server(Exception ex)
Returns a server error message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Context context
Method Detail |
---|
public static String bug(Object... ext)
ext
- optional extension
public static Object notexpected(Object... ext)
ext
- optional extension
public static Object notimplemented(Object... ext)
ext
- optional extension
public static String name(Class<?> o)
o
- object
public static String name(Object o)
o
- object
public static void outln()
public static void outln(Object str, Object... ext)
str
- output stringext
- text optional extensionspublic static void out(Object str, Object... ext)
str
- output stringext
- text optional extensionspublic static void errln(Object obj, Object... ext)
obj
- error stringext
- text optional extensionspublic static void err(String string, Object... ext)
string
- debug stringext
- text optional extensionspublic static String server(Exception ex)
ex
- exception reference
public static boolean debug(Throwable ex)
Prop.debug
flag is set.
ex
- exception
public static void debug(Object str, Object... ext)
Prop.debug
flag is set.
str
- debug stringext
- text optional extensionspublic static void gc(Performance perf)
Prop.debug
flag is set.
perf
- performance referencepublic static String info(Object str, Object... ext)
TokenBuilder.add(Object, Object...)
for details.
str
- string to be extendedext
- text text extensions
public static byte[] inf(Object str, Object... ext)
TokenBuilder.add(Object, Object...)
for details.
str
- string to be extendedext
- text text extensions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |