tagenddetector.java

来自「Jamon是一个Java文本模板引擎」· Java 代码 · 共 36 行

JAVA
36
字号
package org.jamon.parser;import org.jamon.ParserError;import org.jamon.node.Location;/** * A class to detect when we are done reading a tag. * **/public interface TagEndDetector{    /**     * Check to see if we have reached the end of the current tag.     * @param p_char The character just read.     * @return The number of characters comprising the end token, or 0 if      * the tag is not yet done.     **/    int checkEnd(char p_char);    /**     * Called if we reach end of file while parsing java.  This will not be      * called if EOF is reached while inside a java quote.     * @param startLocation The location of the start of this java block     * (used to report errors)     * @return A ParserError detailing the problem     **/    ParserError getEofError(Location p_startLocation);    /**     * Called after parsing a section which cannot be part of a tag      * (and which was not passed to the checkEnd method).       * This method should reset any partial matches for an end token      * that may have been found.     **/    void resetEndMatch();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?