Package | Description |
---|---|
cc.redpen.formatter |
Formatter and the implementations are provided.
|
cc.redpen.model |
Elements of Documents such as List, Sentence are provided.
|
cc.redpen.parser |
Parser and the implementations are provided.
|
cc.redpen.parser.markdown |
Markdown Parser are provided.
|
cc.redpen.validator |
Validators and the factory classes are provided.
|
org.asciidoctor |
Modifier and Type | Method and Description |
---|---|
protected org.json.JSONObject |
JSONFormatter.asJSON(LineOffset lineOffset)
Render a line offset as JSON
|
protected org.json.JSONObject |
JSONFormatter.asJSON(LineOffset startLineOffset,
LineOffset endLineOffset)
Render a start and end line offset as a 'position'
|
protected org.json.JSONObject |
JSONFormatter.asJSON(Sentence sentence,
LineOffset startLineOffset,
LineOffset endLineOffset)
Render a start and end line offsets (ie: source text coordinates) as a description of a section of the sentence.getContent() string
|
Modifier and Type | Method and Description |
---|---|
Optional<LineOffset> |
Sentence.getOffset(int position)
Get offset position for specified character position.
|
Modifier and Type | Method and Description |
---|---|
int |
Sentence.getOffsetPosition(LineOffset offset)
Get the position of the supplied offset (ie: the position in the source text) in this sentence's normalized content
|
Modifier and Type | Method and Description |
---|---|
void |
Sentence.setOffsetMap(List<LineOffset> offsetMap)
Set the offset mapping table which contains character position to column offset in line.
|
Constructor and Description |
---|
Sentence(String content,
List<LineOffset> offsetMap,
List<String> links) |
Modifier and Type | Method and Description |
---|---|
static LineOffset |
PlainTextParser.addSentence(LineOffset lineOffset,
String rawSentenceText,
SentenceExtractor sentenceExtractor,
Document.DocumentBuilder builder) |
Modifier and Type | Method and Description |
---|---|
static LineOffset |
PlainTextParser.addSentence(LineOffset lineOffset,
String rawSentenceText,
SentenceExtractor sentenceExtractor,
Document.DocumentBuilder builder) |
Modifier and Type | Method and Description |
---|---|
Map<LineOffset,String> |
MergedCandidateSentence.getLinks() |
List<LineOffset> |
MergedCandidateSentence.getOffsetMap() |
List<LineOffset> |
CandidateSentence.getOffsetMap() |
Constructor and Description |
---|
MergedCandidateSentence(int lineNum,
String contents,
Map<LineOffset,String> links,
List<LineOffset> offsetMap) |
MergedCandidateSentence(int lineNum,
String contents,
Map<LineOffset,String> links,
List<LineOffset> offsetMap) |
Modifier and Type | Method and Description |
---|---|
Optional<LineOffset> |
ValidationError.getEndPosition()
Get error end position.
|
Optional<LineOffset> |
ValidationError.getStartPosition()
Get error start position.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Validator.addValidationErrorWithPosition(Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
protected void |
Validator.addValidationErrorWithPosition(Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
protected void |
Validator.addValidationErrorWithPosition(String messageKey,
Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
protected void |
Validator.addValidationErrorWithPosition(String messageKey,
Sentence sentenceWithError,
Optional<LineOffset> start,
Optional<LineOffset> end,
Object... args)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected LineOffset |
RedPenTreeProcessor.addSentence(LineOffset lineOffset,
String processed,
String source,
SentenceExtractor sentenceExtractor,
List<Sentence> sentences)
Add a processed AsciiDoc sentence, using the raw source sentence to guide the character offsets.
|
Modifier and Type | Method and Description |
---|---|
protected LineOffset |
RedPenTreeProcessor.addSentence(LineOffset lineOffset,
String processed,
String source,
SentenceExtractor sentenceExtractor,
List<Sentence> sentences)
Add a processed AsciiDoc sentence, using the raw source sentence to guide the character offsets.
|
Copyright © 2015. All rights reserved.