Enum MarkdownTokenType
- java.lang.Object
- 
- java.lang.Enum<MarkdownTokenType>
- 
- net.sf.okapi.filters.markdown.parser.MarkdownTokenType
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<MarkdownTokenType>
 
 public enum MarkdownTokenType extends Enum<MarkdownTokenType> 
- 
- 
Enum Constant Summary
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisInline()Returns true if this token type represents a Markdown expression that does not break a run of text (i.e.static booleanisMisclassifiedHtmlBlockToken(MarkdownToken token)static MarkdownTokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MarkdownTokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ADMONITION_OPENINGpublic static final MarkdownTokenType ADMONITION_OPENING 
 - 
ADMONITION_INFOpublic static final MarkdownTokenType ADMONITION_INFO 
 - 
ADMONITION_CLOSINGpublic static final MarkdownTokenType ADMONITION_CLOSING 
 - 
AUTO_LINKpublic static final MarkdownTokenType AUTO_LINK 
 - 
BLANK_LINEpublic static final MarkdownTokenType BLANK_LINE 
 - 
BLOCK_QUOTEpublic static final MarkdownTokenType BLOCK_QUOTE 
 - 
BULLET_LISTpublic static final MarkdownTokenType BULLET_LIST 
 - 
BULLET_LIST_ITEMpublic static final MarkdownTokenType BULLET_LIST_ITEM 
 - 
CODEpublic static final MarkdownTokenType CODE 
 - 
EMPHASISpublic static final MarkdownTokenType EMPHASIS 
 - 
FENCED_CODE_BLOCKpublic static final MarkdownTokenType FENCED_CODE_BLOCK 
 - 
FENCED_CODE_BLOCK_INFOpublic static final MarkdownTokenType FENCED_CODE_BLOCK_INFO 
 - 
HARD_LINE_BREAKpublic static final MarkdownTokenType HARD_LINE_BREAK 
 - 
HEADING_PREFIXpublic static final MarkdownTokenType HEADING_PREFIX 
 - 
HEADING_ANCHORpublic static final MarkdownTokenType HEADING_ANCHOR 
 - 
HEADING_UNDERLINEpublic static final MarkdownTokenType HEADING_UNDERLINE 
 - 
HTML_BLOCKpublic static final MarkdownTokenType HTML_BLOCK 
 - 
HTML_COMMENT_BLOCKpublic static final MarkdownTokenType HTML_COMMENT_BLOCK 
 - 
HTML_ENTITYpublic static final MarkdownTokenType HTML_ENTITY 
 - 
HTML_INLINEpublic static final MarkdownTokenType HTML_INLINE 
 - 
HTML_INLINE_COMMENTpublic static final MarkdownTokenType HTML_INLINE_COMMENT 
 - 
HTML_INNER_BLOCKpublic static final MarkdownTokenType HTML_INNER_BLOCK 
 - 
HTML_INNER_BLOCK_COMMENTpublic static final MarkdownTokenType HTML_INNER_BLOCK_COMMENT 
 - 
IMAGEpublic static final MarkdownTokenType IMAGE 
 - 
IMAGE_REFpublic static final MarkdownTokenType IMAGE_REF 
 - 
INDENTED_CODE_BLOCKpublic static final MarkdownTokenType INDENTED_CODE_BLOCK 
 - 
LINKpublic static final MarkdownTokenType LINK 
 - 
LINK_REFpublic static final MarkdownTokenType LINK_REF 
 - 
MAIL_LINKpublic static final MarkdownTokenType MAIL_LINK 
 - 
MDX_EXPORTpublic static final MarkdownTokenType MDX_EXPORT 
 - 
ORDERED_LISTpublic static final MarkdownTokenType ORDERED_LIST 
 - 
ORDERED_LIST_ITEMpublic static final MarkdownTokenType ORDERED_LIST_ITEM 
 - 
REFERENCEpublic static final MarkdownTokenType REFERENCE 
 - 
SOFT_LINE_BREAKpublic static final MarkdownTokenType SOFT_LINE_BREAK 
 - 
STRONG_EMPHASISpublic static final MarkdownTokenType STRONG_EMPHASIS 
 - 
TEXTpublic static final MarkdownTokenType TEXT 
 - 
THEMATIC_BREAKpublic static final MarkdownTokenType THEMATIC_BREAK 
 - 
WHITE_SPACEpublic static final MarkdownTokenType WHITE_SPACE 
 - 
TABLE_PIPEpublic static final MarkdownTokenType TABLE_PIPE 
 - 
TABLE_SEPARATORpublic static final MarkdownTokenType TABLE_SEPARATOR 
 - 
YAML_METADATA_HEADERpublic static final MarkdownTokenType YAML_METADATA_HEADER 
 - 
STRIKETHROUGHpublic static final MarkdownTokenType STRIKETHROUGH 
 - 
SUBSCRIPTpublic static final MarkdownTokenType SUBSCRIPT 
 - 
END_TEXT_UNITpublic static final MarkdownTokenType END_TEXT_UNIT 
 - 
LINE_PREFIXpublic static final MarkdownTokenType LINE_PREFIX 
 
- 
 - 
Method Detail- 
valuespublic static MarkdownTokenType[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MarkdownTokenType c : MarkdownTokenType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static MarkdownTokenType valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
isInlinepublic boolean isInline() Returns true if this token type represents a Markdown expression that does not break a run of text (i.e. should not start a new Text Unit) such as "*" of "*emphasized text*", "__" of "__strongly emphasized text__" etc.- Returns:
- true if the token type is for the token that should not start a new TextUnit
 
 - 
isMisclassifiedHtmlBlockTokenpublic static boolean isMisclassifiedHtmlBlockToken(MarkdownToken token) 
 
- 
 
-