org.jamon.parser
Class IfParser

java.lang.Object
  extended by org.jamon.parser.AbstractParser
      extended by org.jamon.parser.AbstractBodyParser<Node>
          extended by org.jamon.parser.SubcomponentParser<Node>
              extended by org.jamon.parser.AbstractFlowControlBlockParser<AbstractBodyNode>
                  extended by org.jamon.parser.IfParser

public class IfParser
extends AbstractFlowControlBlockParser<AbstractBodyNode>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jamon.parser.AbstractBodyParser
AbstractBodyParser.JavaSnippetTagEndDetector
 
Nested classes/interfaces inherited from class org.jamon.parser.AbstractParser
AbstractParser.NotAnIdentifierException
 
Field Summary
static java.lang.String ENCOUNTERED_MULTIPLE_ELSE_TAGS_FOR_ONE_IF_TAG
           
 
Fields inherited from class org.jamon.parser.AbstractBodyParser
ANNOTATE_TAG_IN_SUBCOMPONENT, 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, m_bodyStart, m_root, m_text, PARENT_ARGS_TAG_IN_SUBCOMPONENT, PARENT_MARKER_TAG_IN_SUBCOMPONENT, PERCENT_GREATER_THAN_EOF_ERROR, UNEXPECTED_FRAGMENTS_CLOSE_ERROR, UNEXPECTED_NAMED_FRAGMENT_CLOSE_ERROR
 
Fields inherited from class org.jamon.parser.AbstractParser
BAD_ARGS_CLOSE_TAG, BAD_JAVA_TYPE_SPECIFIER, EOF_IN_JAVA_QUOTE_ERROR, INCOMPLETE_ARRAY_SPECIFIER_ERROR, m_errors, m_reader, MALFORMED_TAG_ERROR, NOT_AN_IDENTIFIER_ERROR
 
Constructor Summary
IfParser(AbstractBodyNode p_node, PositionalPushbackReader p_reader, ParserErrorsImpl p_errors)
           
 
Method Summary
 IfParser getContinuation()
           
protected  void handleElseIfTag(org.jamon.api.Location p_tagLocation)
           
protected  void handleElseTag(org.jamon.api.Location p_tagLocation)
           
protected  java.lang.String tagName()
           
 
Methods inherited from class org.jamon.parser.AbstractFlowControlBlockParser
handlePostTag
 
Methods inherited from class org.jamon.parser.SubcomponentParser
handleEof, handleTagClose, makeError, parse
 
Methods inherited from class org.jamon.parser.AbstractBodyParser
doneParsing, getRootNode, handleAbsMethodTag, handleAliasesTag, handleAnnotationTag, handleClassTag, handleDefTag, handleEscapeTag, handleExtendsTag, handleForTag, handleFragmentsClose, handleGenericTag, handleIfTag, handleImplementsTag, handleImportTag, handleLiteralTag, handleMethodTag, handleNamedFragmentClose, handleOverrideTag, handleParentArgsNode, handleParentMarkerTag, handleTag, handleText, handleWhileTag, isTopLevel, readCondition, readLine, readTagName
 
Methods inherited from class org.jamon.parser.AbstractParser
addError, addError, checkForTagClosure, checkToken, eofErrorMessage, parsePath, readAndAppendChar, readChar, readClassName, readIdentifier, readIdentifierOrThrow, readJava, readType, readUntil, soakWhitespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCOUNTERED_MULTIPLE_ELSE_TAGS_FOR_ONE_IF_TAG

public static final java.lang.String ENCOUNTERED_MULTIPLE_ELSE_TAGS_FOR_ONE_IF_TAG
See Also:
Constant Field Values
Constructor Detail

IfParser

public IfParser(AbstractBodyNode p_node,
                PositionalPushbackReader p_reader,
                ParserErrorsImpl p_errors)
Method Detail

handleElseTag

protected void handleElseTag(org.jamon.api.Location p_tagLocation)
                      throws java.io.IOException
Overrides:
handleElseTag in class AbstractBodyParser<AbstractBodyNode>
Throws:
java.io.IOException

handleElseIfTag

protected void handleElseIfTag(org.jamon.api.Location p_tagLocation)
                        throws java.io.IOException
Overrides:
handleElseIfTag in class AbstractBodyParser<AbstractBodyNode>
Throws:
java.io.IOException

getContinuation

public IfParser getContinuation()

tagName

protected java.lang.String tagName()
Specified by:
tagName in class SubcomponentParser<AbstractBodyNode>


jamon