public class DefaultJavadocBlockParser extends JavadocBlockParser
JavadocBaseParser
which parses generic blocks.Constructor and Description |
---|
DefaultJavadocBlockParser()
Creates a new instance without any inline block parsers.
|
DefaultJavadocBlockParser(List<? extends JavadocBlockParser> blockParsers)
Creates a new instance with inline block parsers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAccept(String tag)
Returns whether this parser can accept the block with target tag name.
|
IrDocBlock |
parse(String tag,
JavadocScanner scanner)
Parses a block.
|
fetchBasicType, fetchField, fetchLinkTarget, fetchMethod, fetchName, fetchNamedType, fetchPrimitiveType, fetchRestFragments, fetchSimpleName, fetchType, newBlock
getBlockParsers, parseBlock, setBlockParsers
public DefaultJavadocBlockParser()
public DefaultJavadocBlockParser(List<? extends JavadocBlockParser> blockParsers)
blockParsers
- the supported inline block parserspublic boolean canAccept(String tag)
JavadocBlockParser
null
.canAccept
in class JavadocBlockParser
tag
- the target tag name (without "@"
), or null
for synopsis blockstrue
if this parser can accept the target block, otherwise false
public IrDocBlock parse(String tag, JavadocScanner scanner) throws JavadocParseException
JavadocBlockParser
parse
in class JavadocBlockParser
tag
- the target tag name (without "@"
), or null
for synopsis blocksscanner
- the scanner for providing block contentsJavadocParseException
- if error occurred while parsing the target blockCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.