public abstract class SubcomponentParser<Node extends AbstractBodyNode> extends AbstractBodyParser<Node>
AbstractBodyParser.JavaSnippetTagEndDetector
AbstractParser.NotAnIdentifierException
ANNOTATE_TAG_IN_SUBCOMPONENT, bodyStart, CLASS_TAG_IN_SUBCOMPONENT, EMIT_ESCAPE_CODE_ERROR, EMIT_MISSING_TAG_END_ERROR, ENCOUNTERED_ELSE_TAG_WITHOUT_PRIOR_IF_TAG, ENCOUNTERED_ELSEIF_TAG_WITHOUT_PRIOR_IF_TAG, ESCAPE_TAG_IN_SUBCOMPONENT, EXTENDS_TAG_IN_SUBCOMPONENT, GENERIC_TAG_IN_SUBCOMPONENT, IMPLEMENTS_TAG_IN_SUBCOMPONENT, PARENT_ARGS_TAG_IN_SUBCOMPONENT, PARENT_MARKER_TAG_IN_SUBCOMPONENT, PERCENT_GREATER_THAN_EOF_ERROR, REPLACEABLE_TAG_IN_SUBCOMPONENT, REPLACES_TAG_IN_SUBCOMPONENT, root, text, UNEXPECTED_FRAGMENTS_CLOSE_ERROR, UNEXPECTED_NAMED_FRAGMENT_CLOSE_ERROR
BAD_ARGS_CLOSE_TAG, BAD_JAVA_TYPE_SPECIFIER, EOF_IN_JAVA_QUOTE_ERROR, errors, INCOMPLETE_ARRAY_SPECIFIER_ERROR, MALFORMED_TAG_ERROR, NOT_AN_IDENTIFIER_ERROR, reader
Modifier | Constructor and Description |
---|---|
protected |
SubcomponentParser(Node node,
PositionalPushbackReader reader,
ParserErrorsImpl errors) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleEof()
This method is called when an end of file is reached, and should add an error if this is not
acceptable
|
protected void |
handlePostTag() |
protected void |
handleTagClose(String tagName,
org.jamon.api.Location tagLocation)
Handle a tag closure
|
static String |
makeError(String tagName) |
AbstractBodyParser<Node> |
parse() |
protected abstract String |
tagName() |
doneParsing, getRootNode, handleAbsMethodTag, handleAliasesTag, handleAnnotationTag, handleClassTag, handleDefTag, handleElseIfTag, handleElseTag, handleEscapeTag, handleExtendsTag, handleForTag, handleFragmentsClose, handleGenericTag, handleIfTag, handleImplementsTag, handleImportTag, handleLiteralTag, handleMethodTag, handleNamedFragmentClose, handleOverrideTag, handleParentArgsNode, handleParentMarkerTag, handleReplaceableTag, handleReplacesTag, handleTag, handleText, handleWhileTag, isTopLevel, readCondition, readLine, readTagName
addError, addError, checkForTagClosure, checkToken, eofErrorMessage, parsePath, readAndAppendChar, readChar, readClassName, readIdentifier, readIdentifierOrThrow, readJava, readType, readUntil, soakWhitespace
protected SubcomponentParser(Node node, PositionalPushbackReader reader, ParserErrorsImpl errors)
public AbstractBodyParser<Node> parse() throws IOException
parse
in class AbstractBodyParser<Node extends AbstractBodyNode>
IOException
protected void handlePostTag() throws IOException
IOException
protected abstract String tagName()
protected void handleTagClose(String tagName, org.jamon.api.Location tagLocation) throws IOException
AbstractBodyParser
handleTagClose
in class AbstractBodyParser<Node extends AbstractBodyNode>
tagName
- The tag nametagLocation
- The tag locationIOException
protected void handleEof()
AbstractBodyParser
handleEof
in class AbstractBodyParser<Node extends AbstractBodyNode>
Copyright © 2003–2017 Jamon developers. All rights reserved.