org.apache.log
public class ContextStack extends java.lang.Object
Constructor and Description |
---|
ContextStack()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Empty the context stack.
|
java.lang.Object |
get(int index)
Deprecated.
Get the context at a particular depth.
|
static ContextStack |
getCurrentContext()
Deprecated.
Get the Current ContextStack.
|
int |
getSize()
Deprecated.
Get the number of contexts in stack.
|
java.lang.Object |
pop()
Deprecated.
Remove a context from top of stack and return it.
|
void |
push(java.lang.Object context)
Deprecated.
Push the context onto top of context stack.
|
void |
set(ContextStack stack)
Deprecated.
Set the current ContextSet to be equl to other ContextStack.
|
java.lang.String |
toString()
Deprecated.
Format context stack into a string.
|
java.lang.String |
toString(int count)
Deprecated.
Format context stack into a string.
|
public static final ContextStack getCurrentContext()
public void clear()
public java.lang.Object get(int index)
index
- the depth of the context to retrievepublic java.lang.Object pop()
public void push(java.lang.Object context)
context
- the context to place on stackpublic void set(ContextStack stack)
stack
- the value to copypublic int getSize()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int count)