org.jamon.parser
Class TopLevelParser
java.lang.Object
org.jamon.parser.AbstractParser
org.jamon.parser.AbstractBodyParser<TopNode>
org.jamon.parser.TopLevelParser
public class TopLevelParser
- extends AbstractBodyParser<TopNode>
| 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 |
|
Constructor Summary |
TopLevelParser(org.jamon.api.TemplateLocation p_location,
java.io.Reader p_reader)
|
| Methods inherited from class org.jamon.parser.AbstractBodyParser |
doneParsing, getRootNode, handleElseIfTag, handleElseTag, handleForTag, handleFragmentsClose, handleIfTag, handleLiteralTag, handleNamedFragmentClose, handleTag, handleTagClose, handleText, handleWhileTag, 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 |
BAD_ABSMETH_CONTENT
public static final java.lang.String BAD_ABSMETH_CONTENT
- See Also:
- Constant Field Values
EXPECTING_SEMI
public static final java.lang.String EXPECTING_SEMI
- See Also:
- Constant Field Values
EXPECTING_ARROW
public static final java.lang.String EXPECTING_ARROW
- See Also:
- Constant Field Values
MALFORMED_EXTENDS_TAG_ERROR
public static final java.lang.String MALFORMED_EXTENDS_TAG_ERROR
- See Also:
- Constant Field Values
MALFORMED_ANNOTATE_TAG_ERROR
public static final java.lang.String MALFORMED_ANNOTATE_TAG_ERROR
- See Also:
- Constant Field Values
UNRECOGNIZED_ANNOTATION_TYPE_ERROR
public static final java.lang.String UNRECOGNIZED_ANNOTATION_TYPE_ERROR
- See Also:
- Constant Field Values
EXPECTING_IMPLEMENTS_CLOSE
public static final java.lang.String EXPECTING_IMPLEMENTS_CLOSE
- See Also:
- Constant Field Values
EXPECTING_IMPORTS_CLOSE
public static final java.lang.String EXPECTING_IMPORTS_CLOSE
- See Also:
- Constant Field Values
TopLevelParser
public TopLevelParser(org.jamon.api.TemplateLocation p_location,
java.io.Reader p_reader)
parse
public AbstractBodyParser<TopNode> parse()
throws java.io.IOException
- Overrides:
parse in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleMethodTag
protected void handleMethodTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleMethodTag in class AbstractBodyParser<TopNode>
- Parameters:
p_tagLocation - location of the def tag
- Throws:
java.io.IOException
handleOverrideTag
protected void handleOverrideTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleOverrideTag in class AbstractBodyParser<TopNode>
- Parameters:
p_tagLocation - location of the def tag
- Throws:
java.io.IOException
handleDefTag
protected void handleDefTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleDefTag in class AbstractBodyParser<TopNode>
- Parameters:
p_tagLocation - location of the def tag
- Throws:
java.io.IOException
handleClassTag
protected void handleClassTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleClassTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleExtendsTag
protected void handleExtendsTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleExtendsTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleImplementsTag
protected void handleImplementsTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleImplementsTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleImportTag
protected void handleImportTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleImportTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleAliasesTag
protected void handleAliasesTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleAliasesTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleAbsMethodTag
protected void handleAbsMethodTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleAbsMethodTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleParentArgsNode
protected void handleParentArgsNode(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleParentArgsNode in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleParentMarkerTag
protected void handleParentMarkerTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleParentMarkerTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
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<TopNode>
handleEscapeTag
protected void handleEscapeTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleEscapeTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleGenericTag
protected void handleGenericTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleGenericTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
handleAnnotationTag
protected void handleAnnotationTag(org.jamon.api.Location p_tagLocation)
throws java.io.IOException
- Overrides:
handleAnnotationTag in class AbstractBodyParser<TopNode>
- Throws:
java.io.IOException
isTopLevel
protected boolean isTopLevel()
- Overrides:
isTopLevel in class AbstractBodyParser<TopNode>
- Returns:
true if this is a top level parser
jamon