public abstract class ParsingContext extends Object
Modifier and Type | Field and Description |
---|---|
static char |
MARSHALLING
Marsalling mode
|
static char |
UNMARSHALLING
Unmarshalling mode
|
Constructor and Description |
---|
ParsingContext()
Constructs a new ParsingContext.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clear() |
void |
createHeap(int size) |
int |
getAdjustedFieldPosition(int position)
Calculates a field position by adjusting for any applied iterations.
|
Object |
getLocal(int index) |
abstract char |
getMode()
Returns the parsing mode.
|
int |
getRelativeFieldIndex()
Returns the current field index relative to any current iteration.
|
boolean |
isRepeating()
Returns whether a repeating segment or field is being parsed.
|
Iteration |
popIteration()
Pops the last
Iteration pushed onto the stack. |
void |
pushIteration(Iteration iteration)
Pushes an
Iteration onto a stack for adjusting
field positions and indices. |
void |
setLocal(int index,
Object obj) |
public static final char UNMARSHALLING
public static final char MARSHALLING
protected void clear()
public abstract char getMode()
UNMARSHALLING
or MARSHALLING
public void pushIteration(Iteration iteration)
Iteration
onto a stack for adjusting
field positions and indices.iteration
- the Iteration
to pushpopIteration()
public Iteration popIteration()
Iteration
pushed onto the stack.pushIteration(Iteration)
public final int getAdjustedFieldPosition(int position)
position
- the field position to adjust (i.e. the position of the first
occurrence of the field)public final int getRelativeFieldIndex()
public final boolean isRepeating()
public final void createHeap(int size)
public final Object getLocal(int index)
public final void setLocal(int index, Object obj)