Constructor and Description |
---|
LeftoversImpl(SourceNode originalSource,
Object... leftovers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addLeftover(Object value,
SourceNode annotatedParent)
Adds the given value to the leftovers.
|
Pair<SourceNode,Set<Cell>> |
consumeValue()
Consume a left over value completely (for all remaining cells).
|
SourceNode |
consumeValue(Cell cell)
Consume a left over value regarding the given cell.
|
public LeftoversImpl(SourceNode originalSource, Object... leftovers)
originalSource
- the original source node to be duplicatedleftovers
- the left over valuespublic void addLeftover(Object value, SourceNode annotatedParent)
value
- the leftover valueannotatedParent
- the value for the annotated parent field of the
duplicate nodespublic Pair<SourceNode,Set<Cell>> consumeValue()
Leftovers
consumeValue
in interface Leftovers
null
if there is no value that hasn't been consumed
completelyLeftovers.consumeValue()
public SourceNode consumeValue(Cell cell)
Leftovers
consumeValue
in interface Leftovers
cell
- the cellnull
if
there is no value that is not yet consumed completely or for the
given cellLeftovers.consumeValue(Cell)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a