public class IfParser extends AbstractFlowControlBlockParser<AbstractBodyNode>
AbstractBodyParser.JavaSnippetTagEndDetector
AbstractParser.NotAnIdentifierException
Modifier and Type | Field and Description |
---|---|
static String |
ENCOUNTERED_MULTIPLE_ELSE_TAGS_FOR_ONE_IF_TAG |
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
Constructor and Description |
---|
IfParser(AbstractBodyNode node,
PositionalPushbackReader reader,
ParserErrorsImpl errors) |
Modifier and Type | Method and Description |
---|---|
IfParser |
getContinuation() |
protected void |
handleElseIfTag(org.jamon.api.Location tagLocation) |
protected void |
handleElseTag(org.jamon.api.Location tagLocation) |
protected String |
tagName() |
handlePostTag
handleEof, handleTagClose, makeError, parse
doneParsing, getRootNode, handleAbsMethodTag, handleAliasesTag, handleAnnotationTag, handleClassTag, handleDefTag, 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
public static final String ENCOUNTERED_MULTIPLE_ELSE_TAGS_FOR_ONE_IF_TAG
public IfParser(AbstractBodyNode node, PositionalPushbackReader reader, ParserErrorsImpl errors)
protected void handleElseTag(org.jamon.api.Location tagLocation) throws IOException
handleElseTag
in class AbstractBodyParser<AbstractBodyNode>
tagLocation
- location of the else tagIOException
protected void handleElseIfTag(org.jamon.api.Location tagLocation) throws IOException
handleElseIfTag
in class AbstractBodyParser<AbstractBodyNode>
tagLocation
- location of the elseif
tagIOException
public IfParser getContinuation()
protected String tagName()
tagName
in class SubcomponentParser<AbstractBodyNode>
Copyright © 2003–2014 Jamon developers. All rights reserved.