TokenStreamContext used by TokenBuffer
to link back to the original context to try to keep location information
consistent between source location and buffered content when it's re-read
from the buffer.
| Modifier and Type | Field and Description |
|---|---|
| protected String | |
| protected Object | |
| protected final TokenStreamContext | |
| protected final TokenStreamLocation |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | TokenBufferReadContext()
Constructor for case where there is no real surrounding context: just create virtual ROOT |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | assignCurrentValue(Object v)
Overrides tools. Method to call to pass value to be returned via |
| public TokenBufferReadContext | |
| public TokenBufferReadContext | |
| public static TokenBufferReadContext | |
| public String | currentName()
Implements abstract tools. Method for accessing name associated with the current location. |
| public Object | currentValue()
Overrides tools. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. |
| public TokenStreamContext | getParent()
Implements abstract tools. Accessor for finding parent context of this context; will return null for root context. |
| public boolean | |
| public TokenBufferReadContext | parentOrCopy()
Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types. |
| public void | |
| public void |
| _currentName | back to summary |
|---|---|
| protected String _currentName | |
| _currentValue | back to summary |
|---|---|
| protected Object _currentValue | |
| _parent | back to summary |
|---|---|
| protected final TokenStreamContext _parent | |
| _startLocation | back to summary |
|---|---|
| protected final TokenStreamLocation _startLocation | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(TokenStreamContext base, ContentReference contentRef) | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(TokenStreamContext base, TokenStreamLocation startLoc) | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext() Constructor for case where there is no real surrounding context: just create virtual ROOT | |
| TokenBufferReadContext | back to summary |
|---|---|
| protected TokenBufferReadContext(TokenBufferReadContext parent, int type, int index) | |
| assignCurrentValue | back to summary |
|---|---|
| public void assignCurrentValue(Object v) Overrides tools. Doc from tools. Method to call to pass value to be returned via
| |
| createChildArrayContext | back to summary |
|---|---|
| public TokenBufferReadContext createChildArrayContext() | |
| createChildObjectContext | back to summary |
|---|---|
| public TokenBufferReadContext createChildObjectContext() | |
| createRootContext | back to summary |
|---|---|
| public static TokenBufferReadContext createRootContext(TokenStreamContext origContext) | |
| currentName | back to summary |
|---|---|
| public String currentName() Implements abstract tools. Doc from tools. Method for accessing name associated with the current location.
Non-null for
| |
| currentValue | back to summary |
|---|---|
| public Object currentValue() Overrides tools. Doc from tools. Method for accessing currently active value being used by data-binding (as the source of streaming data to write, or destination of data being read), at this level in hierarchy. Note that "current value" is NOT populated (or used) by Streaming parser or generator; it is only used by higher-level data-binding functionality. The reason it is included here is that it can be stored and accessed hierarchically, and gets passed through data-binding.
| |
| getParent | back to summary |
|---|---|
| public TokenStreamContext getParent() Implements abstract tools. Doc from tools. Accessor for finding parent context of this context; will return null for root context.
| |
| hasCurrentName | back to summary |
|---|---|
| public boolean hasCurrentName() Overrides tools.
| |
| parentOrCopy | back to summary |
|---|---|
| public TokenBufferReadContext parentOrCopy() Helper method we need to handle discontinuity between "real" contexts buffer creates, and ones from parent: problem being they are of different types. | |
| setCurrentName | back to summary |
|---|---|
| public void setCurrentName(String name) | |
| updateForValue | back to summary |
|---|---|
| public void updateForValue() | |