public class AlignmentImpl extends Alignment
Alignment.Anchor
Modifier and Type | Method and Description |
---|---|
Alignment.Anchor |
getAnchor() |
java.lang.String |
getId() |
LeafBlockWrapper |
getOffsetRespBlockBefore(AbstractBlockWrapper block)
Selects target wrapped block by the following algorithm:
Filter blocks registered via
setOffsetRespBlock(LeafBlockWrapper) in order to process only those that start
before the given block (blocks which start offset is lower than start offset of the given block). |
java.util.Set<LeafBlockWrapper> |
getOffsetResponsibleBlocks() |
boolean |
isAllowBackwardShift() |
void |
reset() |
void |
setOffsetRespBlock(LeafBlockWrapper block)
Registers wrapped block within the current alignment in order to use it for further
getOffsetRespBlockBefore(AbstractBlockWrapper) calls processing. |
void |
setParent(Alignment base) |
java.lang.String |
toString() |
createAlignment, createAlignment, createAlignment, createChildAlignment
public boolean isAllowBackwardShift()
public Alignment.Anchor getAnchor()
public java.lang.String getId()
public void reset()
public void setParent(Alignment base)
public LeafBlockWrapper getOffsetRespBlockBefore(AbstractBlockWrapper block)
setOffsetRespBlock(LeafBlockWrapper)
in order to process only those that start
before the given block (blocks which start offset is lower than start offset of the given block).
white space
contains line feeds;
parent alignment
(if it's registered) if no blocks
are configured for the current one;
block
- target block to use during blocks filteringregistered
for the current alignment object or
its parent
using the algorithm above if any; null
otherwisepublic void setOffsetRespBlock(LeafBlockWrapper block)
getOffsetRespBlockBefore(AbstractBlockWrapper)
calls processing.block
- wrapped block to register within the current alignment objectpublic java.util.Set<LeafBlockWrapper> getOffsetResponsibleBlocks()
public java.lang.String toString()
toString
in class java.lang.Object