public final class ScopeImpl extends Object implements DebugContext.Scope
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
dump(int dumpLevel,
Object object,
String formatString,
Object... args) |
Iterable<Object> |
getCurrentContext() |
String |
getQualifiedName()
Gets the names of this scope and its ancestors separated by
'.'. |
RuntimeException |
handle(Throwable e) |
void |
log(int logLevel,
String msg,
Object... args) |
ScopeImpl |
scope(CharSequence name,
DebugConfig sandboxConfig,
Object... newContextObjects)
Creates and enters a new scope which is either a child of the current scope or a disjoint top
level scope.
|
void |
verify(Object object,
String formatString,
Object... args) |
public void close()
close in interface AutoCloseableclose in interface DebugContext.Scopepublic void verify(Object object, String formatString, Object... args)
DebugContext.verify(Object, String)public ScopeImpl scope(CharSequence name, DebugConfig sandboxConfig, Object... newContextObjects)
name - the name of the new scopesandboxConfig - the configuration to use for a new top level scope, or null if the new
scope should be a child scopenewContextObjects - objects to be appended to the debug contextScopeImpl.close() method is calledpublic RuntimeException handle(Throwable e)
public Iterable<Object> getCurrentContext()
getCurrentContext in interface DebugContext.Scopepublic String getQualifiedName()
DebugContext.Scope'.'.getQualifiedName in interface DebugContext.Scope