Klasse ObjectInspector
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ObjectInspector
@VelocityVariable("DEBUG")
@VelocityCallable("singleton")
public final class ObjectInspector
extends Object
Used to inspect an object.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddebugger()This method does nothing.voidWrite an error entry to the log file.voidgc()Run finalization and trigger garbage collection.Get the built-in stopwatch.voidWrite an info entry to the log file.Inspect the given object.inspectClass(String p_strClass) Inspect the given class, i.e. check if it exists, and if so, determine its location if possible.booleanTest if JavaScript debugging is enabled.booleanTest if jQuery migration plugin is enabled.booleanTest if local storage caching is enabled.booleanTest if Velocity debugging is enabled.Get the built-in stopwatch.voidWrite a warning entry to the log file.
-
Konstruktordetails
-
ObjectInspector
public ObjectInspector()Construct a newObjectInspector.
-
-
Methodendetails
-
debugger
public void debugger()This method does nothing. It may be used to set breakpoints in a JVM debugger. -
isVelocityDebugEnabled
public boolean isVelocityDebugEnabled()Test if Velocity debugging is enabled.- Gibt zurück:
- @return
trueif Velocity debugging is enabled, orfalseotherwise.
-
isJavaScriptDebugEnabled
public boolean isJavaScriptDebugEnabled()Test if JavaScript debugging is enabled.- Gibt zurück:
- @return
trueif JavaScript debugging is enabled, orfalseotherwise.
-
isJQueryMigrationPluginEnabled
public boolean isJQueryMigrationPluginEnabled()Test if jQuery migration plugin is enabled.- Gibt zurück:
- @return
trueif jQuery migration plugin is enabled, orfalseotherwise.
-
isLocalStorageCachingEnabled
public boolean isLocalStorageCachingEnabled()Test if local storage caching is enabled.- Gibt zurück:
- @return
trueif local storage caching is enabled, orfalseotherwise.
-
inspect
Inspect the given object.- Parameter:
p_obj- The object to be inspected.
-
inspectClass
Inspect the given class, i.e. check if it exists, and if so, determine its location if possible.- Parameter:
p_strClass- The class to be inspected.
-
info
Write an info entry to the log file.- Parameter:
p_obj- The object to be written to the log (may benull).
-
warn
Write a warning entry to the log file.- Parameter:
p_obj- The object to be written to the log (may benull).
-
error
Write an error entry to the log file.- Parameter:
p_obj- The object to be written to the log (may benull).
-
getBuiltinStopwatch
Get the built-in stopwatch.- Gibt zurück:
- A reference to the built-in stopwatch.
-
stopwatch
Get the built-in stopwatch.- Gibt zurück:
- A new stopwatch instance.
-
gc
public void gc()Run finalization and trigger garbage collection.
-