Top Fields Constructors Methods
com.vladsch.flexmark.util.format

public Class TableCell

extends Object
Class Inheritance
Annotations
@SuppressWarnings:WeakerAccess
Imports
com.vladsch.flexmark.util.ast.Node, com.vladsch.flexmark.util.html.CellAlignment, com.vladsch.flexmark.util.sequence.BasedSequence, .PrefixedSubSequence, org.jetbrains.annotations.NotNull

Field Summary

Modifier and TypeField and Description
public final boolean
public final boolean
public final CellAlignment
public final BasedSequence
public final int
public static final TableCell
public static final int
public static final TableCell
public final BasedSequence
public final int
public final int
public final Node
public final BasedSequence
public final int
public final int

Constructor Summary

AccessConstructor and Description
public
TableCell(CharSequence text, int rowSpan, int columnSpan)

public
TableCell(Node tableCellNode, CharSequence text, int rowSpan, int columnSpan, CellAlignment alignment)

public
TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan)

public
TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan, CellAlignment alignment)

public
TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan, CellAlignment alignment, int trackedTextOffset, int spanTrackedOffset, int trackedTextAdjust, boolean afterSpace, boolean afterDelete)

public
TableCell(@NotNull TableCell other, boolean copyNode, int rowSpan, int columnSpan, CellAlignment alignment)

Method Summary

Modifier and TypeMethod and Description
private CharSequence
public int

Returns:

length of the cell as occupied in the original file
getCellLength
(TableCell
previous cell or null for first cell
previousCell
)

Returns the cell length occupied in the table

public int

Returns:

length of cell's prefix before actual text as occupied in the file
getCellPrefixLength
(TableCell
previous cell or null for first cell
previousCell
)

Returns the cell prefix length occupied in the table

public int
getCellSize(TableCell previousCell)

public int
public int
public int
pack-priv BasedSequence
public int
getStartOffset(TableCell previousCell)

public int
public int
public int
insideToTextOffset(int insideOffset, TableCell previousCell)

public boolean
isAtCell(int offset, TableCell previousCell)

public boolean
isInsideCell(int offset, TableCell previousCell)

public int
textToInsideOffset(int insideOffset, TableCell previousCell)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public TableCell
withAfterSpace(boolean afterSpace)

public TableCell
public TableCell
withColumnSpan(int columnSpan)

public TableCell
withRowSpan(int rowSpan)

public TableCell
withSpanTrackedOffset(int spanTrackedOffset)

public TableCell
public TableCell
withText(CharSequence openMarker, CharSequence text, CharSequence closeMarker)

public TableCell
withTrackedOffset(int trackedTextOffset)

public TableCell
withTrackedOffset(int trackedTextOffset, boolean afterSpace, boolean afterDelete)

public TableCell
withTrackedTextAdjust(int trackedTextAdjust)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

afterDeleteback to summary
public final boolean afterDelete
afterSpaceback to summary
public final boolean afterSpace
alignmentback to summary
public final CellAlignment alignment
closeMarkerback to summary
public final BasedSequence closeMarker
columnSpanback to summary
public final int columnSpan
DEFAULT_CELLback to summary
public static final TableCell DEFAULT_CELL
NOT_TRACKEDback to summary
public static final int NOT_TRACKED
NULLback to summary
public static final TableCell NULL
openMarkerback to summary
public final BasedSequence openMarker
rowSpanback to summary
public final int rowSpan
spanTrackedOffsetback to summary
public final int spanTrackedOffset
tableCellNodeback to summary
public final Node tableCellNode
textback to summary
public final BasedSequence text
trackedTextAdjustback to summary
public final int trackedTextAdjust
trackedTextOffsetback to summary
public final int trackedTextOffset

Constructor Detail

TableCellback to summary
public TableCell(CharSequence text, int rowSpan, int columnSpan)
TableCellback to summary
public TableCell(Node tableCellNode, CharSequence text, int rowSpan, int columnSpan, CellAlignment alignment)
TableCellback to summary
public TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan)
TableCellback to summary
public TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan, CellAlignment alignment)
TableCellback to summary
public TableCell(Node tableCellNode, CharSequence openMarker, CharSequence text, CharSequence closeMarker, int rowSpan, int columnSpan, CellAlignment alignment, int trackedTextOffset, int spanTrackedOffset, int trackedTextAdjust, boolean afterSpace, boolean afterDelete)
TableCellback to summary
public TableCell(@NotNull TableCell other, boolean copyNode, int rowSpan, int columnSpan, CellAlignment alignment)

Method Detail

dumpSequenceback to summary
private CharSequence dumpSequence(BasedSequence sequence)
getCellLengthback to summary
public int getCellLength(TableCell previousCell)

Returns the cell length occupied in the table

Parameters
previousCell:TableCell

previous cell or null for first cell

Returns:int

length of the cell as occupied in the original file

getCellPrefixLengthback to summary
public int getCellPrefixLength(TableCell previousCell)

Returns the cell prefix length occupied in the table

Parameters
previousCell:TableCell

previous cell or null for first cell

Returns:int

length of cell's prefix before actual text as occupied in the file

getCellSizeback to summary
public int getCellSize(TableCell previousCell)
getEndOffsetback to summary
public int getEndOffset()
getInsideEndOffsetback to summary
public int getInsideEndOffset()
getInsideStartOffsetback to summary
public int getInsideStartOffset(TableCell previousCell)
getLastSegmentback to summary
pack-priv BasedSequence getLastSegment()
getStartOffsetback to summary
public int getStartOffset(TableCell previousCell)
getTextEndOffsetback to summary
public int getTextEndOffset(TableCell previousCell)
getTextStartOffsetback to summary
public int getTextStartOffset(TableCell previousCell)
insideToTextOffsetback to summary
public int insideToTextOffset(int insideOffset, TableCell previousCell)
isAtCellback to summary
public boolean isAtCell(int offset, TableCell previousCell)
isInsideCellback to summary
public boolean isInsideCell(int offset, TableCell previousCell)
textToInsideOffsetback to summary
public int textToInsideOffset(int insideOffset, TableCell previousCell)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
withAfterSpaceback to summary
public TableCell withAfterSpace(boolean afterSpace)
withAlignmentback to summary
public TableCell withAlignment(CellAlignment alignment)
withColumnSpanback to summary
public TableCell withColumnSpan(int columnSpan)
withRowSpanback to summary
public TableCell withRowSpan(int rowSpan)
withSpanTrackedOffsetback to summary
public TableCell withSpanTrackedOffset(int spanTrackedOffset)
withTextback to summary
public TableCell withText(CharSequence text)
withTextback to summary
public TableCell withText(CharSequence openMarker, CharSequence text, CharSequence closeMarker)
withTrackedOffsetback to summary
public TableCell withTrackedOffset(int trackedTextOffset)
withTrackedOffsetback to summary
public TableCell withTrackedOffset(int trackedTextOffset, boolean afterSpace, boolean afterDelete)
withTrackedTextAdjustback to summary
public TableCell withTrackedTextAdjust(int trackedTextAdjust)