| java.lang.Object org.jibx.binding.util.SparseStack
SparseStack | public class SparseStack (Code) | | Stack for values that depend on the level of nesting, where only some of the
levels change the current value.
author: Dennis M. Sosnoski |
Constructor Summary | |
public | SparseStack(Object current) Constructor with initial value. | public | SparseStack() Constructor with no initial value. |
SparseStack | public SparseStack(Object current)(Code) | | Constructor with initial value.
Parameters: current - initial value |
SparseStack | public SparseStack()(Code) | | Constructor with no initial value.
|
enter | public void enter()(Code) | | Enter a level of nesting.
|
exit | public Object exit()(Code) | | Exit a level of nesting with changed item returned.
item that was active until this exit, or null ifsame item still active |
getCurrent | public Object getCurrent()(Code) | | Get current object.
current |
setCurrent | public void setCurrent(Object obj)(Code) | | Set current object.
Parameters: obj - set the current object |
|
|