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
-
Field Summary
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the horizonzal alignment of this cell.If the style of a cell isasciidocthe content of the cell is an inner document.intgetStyle()Returns the style of this cell.getText()Returns the vertical alignment of this cell.voidSets the horizontal alignment of this cell.voidsetInnerDocument(Document document) voidSets the source of the Cell.voidSets the style of this cell.voidSets 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, setIdMethods inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
getBoolean, getInt, getList, getProperty, getRubyObject, getRubyProperty, getRuntime, getString, getSymbol, setBoolean, setInt, setRubyProperty, setString, setSymbol, toJava, toJavaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
CellImpl
public CellImpl(org.jruby.runtime.builtin.IRubyObject rubyNode)
-
-
Method Details
-
getColumn
-
getColspan
public int getColspan()- Specified by:
getColspanin interfaceCell
-
getRowspan
public int getRowspan()- Specified by:
getRowspanin interfaceCell
-
getText
-
getSource
-
setSource
Description copied from interface:CellSets the source of the Cell. -
getContent
- Specified by:
getContentin interfaceCell
-
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
Description copied from interface:CellSets the style of this cell. -
getHorizontalAlignment
Description copied from interface:CellReturns the horizonzal alignment of this cell.- Specified by:
getHorizontalAlignmentin interfaceCell- Returns:
- a constant representing the horizontal alignment.
-
setHorizontalAlignment
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
Description copied from interface:CellReturns the vertical alignment of this cell.- Specified by:
getVerticalAlignmentin interfaceCell- Returns:
- a constant representing the vertical alignment.
-
setVerticalAlignment
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
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
- Specified by:
setInnerDocumentin interfaceCell- See Also:
-