org.jamon.parser
Class UnnamedFragmentParser

java.lang.Object
  extended by org.jamon.parser.AbstractParser
      extended by org.jamon.parser.AbstractBodyParser<UnnamedFragmentNode>
          extended by org.jamon.parser.UnnamedFragmentParser

public class UnnamedFragmentParser
extends AbstractBodyParser<UnnamedFragmentNode>


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 FRAGMENT_CLOSE_EXPECTED
           
 
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
UnnamedFragmentParser(UnnamedFragmentNode p_rootNode, PositionalPushbackReader p_reader, ParserErrorsImpl p_errors)
           
 
Method Summary
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  boolean handleFragmentsClose(org.jamon.api.Location p_tagLocation)
          Handle the occurence of a '</&>' tag
 
Methods inherited from class org.jamon.parser.AbstractBodyParser
doneParsing, getRootNode, handleAbsMethodTag, handleAliasesTag, handleAnnotationTag, handleClassTag, handleDefTag, handleElseIfTag, handleElseTag, handleEscapeTag, handleExtendsTag, handleForTag, handleGenericTag, handleIfTag, handleImplementsTag, handleImportTag, handleLiteralTag, handleMethodTag, handleNamedFragmentClose, handleOverrideTag, handleParentArgsNode, handleParentMarkerTag, handleTag, handleTagClose, handleText, handleWhileTag, isTopLevel, parse, 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

FRAGMENT_CLOSE_EXPECTED

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

UnnamedFragmentParser

public UnnamedFragmentParser(UnnamedFragmentNode p_rootNode,
                             PositionalPushbackReader p_reader,
                             ParserErrorsImpl p_errors)
Method Detail

handleFragmentsClose

protected boolean handleFragmentsClose(org.jamon.api.Location p_tagLocation)
Description copied from class: AbstractBodyParser
Handle the occurence of a '</&>' tag

Overrides:
handleFragmentsClose in class AbstractBodyParser<UnnamedFragmentNode>
Returns:
true if this parser is done

handleEof

protected void handleEof()
Description copied from class: AbstractBodyParser
This method is called when an end of file is reached, and should add an error if this is not acceptable

Specified by:
handleEof in class AbstractBodyParser<UnnamedFragmentNode>


jamon