protected static class RedPenTreeProcessor.BlockAccessor extends Object
Constructor and Description |
---|
BlockAccessor(Object aBlock)
This method takes an AsciiDoctorJ JRuby object which should be an instance of
an abstract block.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndent()
If the underlying JRuby object is a list item, then this variable is the
indent of that list item.
|
int |
getLineNo()
This returned the line number stored inside the JRuby object.
|
String |
getSourceText()
The source text is a new block element inserted into the JRuby object by
the Ruby code in redpen's AsciiDocParser.java.
|
String |
getType()
The type element of the var table returns the type of this block, for example
'ulist' or 'list_time'
|
String |
getValue()
The block's value is usually its processed or converted text form
|
public BlockAccessor(Object aBlock)
aBlock
- an AsciiDoctorJ blockpublic String getType()
public String getValue()
public int getIndent()
public String getSourceText()
public int getLineNo()
Copyright © 2015. All rights reserved.