Package org.asciidoctor.jruby.ast.impl
Class CellImpl
- java.lang.Object
-
- org.asciidoctor.jruby.internal.RubyObjectWrapper
-
- org.asciidoctor.jruby.ast.impl.ContentNodeImpl
-
- org.asciidoctor.jruby.ast.impl.CellImpl
-
- All Implemented Interfaces:
Cell,ContentNode
public class CellImpl extends ContentNodeImpl implements Cell
-
-
Field Summary
-
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime
-
-
Constructor Summary
Constructors Constructor Description CellImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColspan()ColumngetColumn()java.lang.ObjectgetContent()Table.HorizontalAlignmentgetHorizontalAlignment()Returns the horizonzal alignment of this cell.DocumentgetInnerDocument()If the style of a cell isasciidocthe content of the cell is an inner document.intgetRowspan()java.lang.StringgetSource()java.lang.StringgetStyle()Returns the style of this cell.java.lang.StringgetText()Table.VerticalAlignmentgetVerticalAlignment()Returns the vertical alignment of this cell.voidsetHorizontalAlignment(Table.HorizontalAlignment halign)Sets the horizontal alignment of this cell.voidsetInnerDocument(Document document)voidsetSource(java.lang.String source)Sets the source of the Cell.voidsetStyle(java.lang.String style)Sets the style of this cell.voidsetVerticalAlignment(Table.VerticalAlignment valign)Sets the vertical alignment of this cell.-
Methods inherited from class org.asciidoctor.jruby.ast.impl.ContentNodeImpl
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setId
-
Methods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJava
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.asciidoctor.ast.ContentNode
addRole, context, document, getAttr, getAttr, getAttr, getAttribute, getAttribute, getAttribute, getAttributes, getContext, getDocument, getId, getNodeName, getParent, getReftext, getRole, getRoles, hasAttr, hasAttr, hasAttribute, hasAttribute, hasRole, iconUri, id, imageUri, imageUri, isAttr, isAttr, isAttribute, isAttribute, isBlock, isInline, isOption, isReftext, isRole, mediaUri, normalizeWebPath, parent, readAsset, removeRole, role, setAttr, setAttribute, setId
-
-
-
-
Method Detail
-
getColspan
public int getColspan()
- Specified by:
getColspanin interfaceCell
-
getRowspan
public int getRowspan()
- Specified by:
getRowspanin interfaceCell
-
getText
public java.lang.String getText()
-
getSource
public java.lang.String getSource()
-
setSource
public void setSource(java.lang.String source)
Description copied from interface:CellSets the source of the Cell.
-
getContent
public java.lang.Object getContent()
- Specified by:
getContentin interfaceCell
-
getStyle
public java.lang.String getStyle()
Description copied from interface:CellReturns the style of this cell. The default isnull. Possible values are:null"strong""emphasis""monospaced""header""literal""verse""asciidoc"
-
setStyle
public void setStyle(java.lang.String style)
Description copied from interface:CellSets the style of this cell.- Specified by:
setStylein interfaceCell- Parameters:
style- Values likeasciidoc,verse,literalorheader.- See Also:
Cell.getStyle()
-
getHorizontalAlignment
public Table.HorizontalAlignment getHorizontalAlignment()
Description copied from interface:CellReturns the horizonzal alignment of this cell.- Specified by:
getHorizontalAlignmentin interfaceCell- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
public void setHorizontalAlignment(Table.HorizontalAlignment halign)
Description copied from interface:CellSets the horizontal alignment of this cell.- Specified by:
setHorizontalAlignmentin interfaceCell- Parameters:
halign- EitherTable.HorizontalAlignment.LEFT,Table.HorizontalAlignment.CENTERorTable.HorizontalAlignment.RIGHT
-
getVerticalAlignment
public Table.VerticalAlignment getVerticalAlignment()
Description copied from interface:CellReturns the vertical alignment of this cell.- Specified by:
getVerticalAlignmentin interfaceCell- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
public void setVerticalAlignment(Table.VerticalAlignment valign)
Description copied from interface:CellSets the vertical alignment of this cell.- Specified by:
setVerticalAlignmentin interfaceCell- Parameters:
valign- EitherTable.VerticalAlignment.TOP,Table.VerticalAlignment.MIDDLEorTable.VerticalAlignment.BOTTOM
-
getInnerDocument
public Document getInnerDocument()
Description copied from interface:CellIf the style of a cell isasciidocthe content of the cell is an inner document. This method returns this inner document.- Specified by:
getInnerDocumentin interfaceCell- Returns:
- The inner document if the cell style is
asciidoc
-
setInnerDocument
public void setInnerDocument(Document document)
- Specified by:
setInnerDocumentin interfaceCell- See Also:
Cell.getInnerDocument()
-
-