|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylyn.wikitext.core.parser.markup.ContentState
public class ContentState
State related to parsing content, propagated to blocks
and other processors
during
the parse phase.
Constructor Summary | |
---|---|
ContentState()
|
Method Summary | |
---|---|
void |
addGlossaryTerm(String term,
String definition)
Add a glossary term (typically an acronym) with its definition. |
int |
getDocumentOffset()
get the 0-based character offset of the current character from the start of the document. |
String |
getFootnoteId(String footnote)
|
Map<String,String> |
getGlossaryTerms()
Get the glossary as a map of definition by acronym or term. |
IdGenerator |
getIdGenerator()
|
int |
getLineCharacterOffset()
get the 0-based offset of the current character in the current line |
int |
getLineDocumentOffset()
get the 0-based character offset of the current line from the start of the document |
int |
getLineLength()
get the length of the current line in characters, not including the line terminator |
int |
getLineNumber()
Get the 1-based line number of the current line. |
int |
getLineOffset()
the 0-based character offset of the current line. |
int |
getLineSegmentEndOffset()
Get the 0-based offset of the end of the current line segment being processed, exclusive. |
String |
getMarkupContent()
|
void |
setLineCharacterOffset(int lineCharacterOffset)
|
void |
setLineLength(int lineLength)
|
protected void |
setLineNumber(int lineNumber)
the 1-based line number of the current line. |
protected void |
setLineOffset(int lineOffset)
the 0-based character offset of the current line. |
void |
setLineSegmentEndOffset(int lineSegmentEndOffset)
|
protected void |
setMarkupContent(String markupContent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentState()
Method Detail |
---|
public String getMarkupContent()
protected void setMarkupContent(String markupContent)
public String getFootnoteId(String footnote)
public void addGlossaryTerm(String term, String definition)
term
- the term to adddefinition
- the definition of the term.public Map<String,String> getGlossaryTerms()
public IdGenerator getIdGenerator()
public int getLineNumber()
getLineNumber
in interface Locator
protected void setLineNumber(int lineNumber)
public int getLineOffset()
protected void setLineOffset(int lineOffset)
public int getLineDocumentOffset()
Locator
getLineDocumentOffset
in interface Locator
public int getLineCharacterOffset()
Locator
getLineCharacterOffset
in interface Locator
public void setLineCharacterOffset(int lineCharacterOffset)
public int getDocumentOffset()
Locator
getLineDocumentOffset()+getLineCharacterOffset()
getDocumentOffset
in interface Locator
public int getLineLength()
Locator
getLineLength
in interface Locator
public void setLineLength(int lineLength)
public void setLineSegmentEndOffset(int lineSegmentEndOffset)
public int getLineSegmentEndOffset()
Locator
Locator.getLineCharacterOffset()
and ends on the character preceding this
offset, [s,e)
where s is the start and e is the end.
getLineSegmentEndOffset
in interface Locator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |