Package org.asciidoctor.jruby.ast.impl
Class TableImpl
- java.lang.Object
-
- org.asciidoctor.jruby.internal.RubyObjectWrapper
-
- org.asciidoctor.jruby.ast.impl.ContentNodeImpl
-
- org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
-
- org.asciidoctor.jruby.ast.impl.TableImpl
-
- All Implemented Interfaces:
ContentNode
,StructuralNode
,Table
public class TableImpl extends StructuralNodeImpl implements Table
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.asciidoctor.ast.Table
Table.HorizontalAlignment, Table.VerticalAlignment
-
-
Field Summary
-
Fields inherited from class org.asciidoctor.jruby.internal.RubyObjectWrapper
rubyNode, runtime
-
Fields inherited from interface org.asciidoctor.ast.StructuralNode
SUBSTITUTION_ATTRIBUTES, SUBSTITUTION_MACROS, SUBSTITUTION_POST_REPLACEMENTS, SUBSTITUTION_QUOTES, SUBSTITUTION_REPLACEMENTS, SUBSTITUTION_SPECIAL_CHARACTERS
-
-
Constructor Summary
Constructors Constructor Description TableImpl(org.jruby.runtime.builtin.IRubyObject rubyObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Row>
getBody()
java.util.List<Column>
getColumns()
java.util.List<Row>
getFooter()
java.lang.String
getFrame()
Returns the frame attribute of the table that defines what frame to render around the table.java.lang.String
getGrid()
Returns the grid attribute that defines what boundary lines to draw between rows and columns.java.util.List<Row>
getHeader()
boolean
hasHeaderOption()
void
setFrame(java.lang.String frame)
Sets the frame attribute.void
setGrid(java.lang.String grid)
Sets the value of the attribute.-
Methods inherited from class org.asciidoctor.jruby.ast.impl.StructuralNodeImpl
addSubstitution, append, blocks, content, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle, style, title
-
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
-
Methods inherited from interface org.asciidoctor.ast.StructuralNode
addSubstitution, append, blocks, content, convert, findBy, getBlocks, getCaption, getContent, getContentModel, getLevel, getSourceLocation, getStyle, getSubstitutions, getTitle, isSubstitutionEnabled, prependSubstitution, removeSubstitution, setCaption, setLevel, setStyle, setSubstitutions, setTitle, style, title
-
-
-
-
Method Detail
-
hasHeaderOption
public boolean hasHeaderOption()
- Specified by:
hasHeaderOption
in interfaceTable
-
getFrame
public java.lang.String getFrame()
Description copied from interface:Table
Returns the frame attribute of the table that defines what frame to render around the table. By default, the frame attribute is assigned theall
value, which draws a border on each side of the table. If you set the frame attribute, you can override the default value withtopbot
,sides
ornone
.
-
setFrame
public void setFrame(java.lang.String frame)
Description copied from interface:Table
Sets the frame attribute.- Specified by:
setFrame
in interfaceTable
- Parameters:
frame
-all
,topbot
,sides
ornone
- See Also:
Table.getFrame()
-
getGrid
public java.lang.String getGrid()
Description copied from interface:Table
Returns the grid attribute that defines what boundary lines to draw between rows and columns. By default the grid attribute is assigned theall
value, which draws lines around each cell. Alternative values arecols
to draw lines between columns,rows
to draw boundary lines between rows andnone
to draw no boundary lines
-
setGrid
public void setGrid(java.lang.String grid)
Description copied from interface:Table
Sets the value of the attribute.- Specified by:
setGrid
in interfaceTable
- Parameters:
grid
- usually eitherall
,cols
,rows
ornone
- See Also:
Table.getGrid()
-
getColumns
public java.util.List<Column> getColumns()
- Specified by:
getColumns
in interfaceTable
-
-