OSDN Git Service

removed all files
[xerial/xerial-core.git] / src / main / java / org / xerial / util / tree / TreeVisitor.java
diff --git a/src/main/java/org/xerial/util/tree/TreeVisitor.java b/src/main/java/org/xerial/util/tree/TreeVisitor.java
deleted file mode 100755 (executable)
index 56860a3..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-/*--------------------------------------------------------------------------\r
- *  Copyright 2007 Taro L. Saito\r
- *\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *  You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- *--------------------------------------------------------------------------*/\r
-//--------------------------------------\r
-// XerialJ\r
-//\r
-// TreeIterator.java\r
-// Since: Dec 18, 2007 11:04:35 AM\r
-//\r
-// $URL: http://www.xerial.org/svn/project/XerialJ/trunk/xerial-core/src/main/java/org/xerial/util/tree/TreeVisitor.java $\r
-// $Author: leo $\r
-//--------------------------------------\r
-package org.xerial.util.tree;\r
-\r
-import org.xerial.core.XerialException;\r
-\r
-/**\r
- * A depth-first visitor model for tree structured data, including XML, JSON,\r
- * ANTLR Parse Tree, etc. Implement this interface to create your own visitor\r
- * class.\r
- * \r
- * @author leo\r
- * \r
- */\r
-public interface TreeVisitor\r
-{\r
-\r
-    /**\r
-     * Initialize the visitor here\r
-     */\r
-    public void init(TreeWalker walker) throws XerialException;\r
-\r
-    /**\r
-     * Invoked when a new node is found (in the depth-first manner)\r
-     * \r
-     * @param immediateNodeValue\r
-     *            immediate node value of the node. When no value is observed,\r
-     *            this value will be <tt>null</tt>.\r
-     * \r
-     * @param nodeName\r
-     *            found node name\r
-     */\r
-    public void visitNode(String nodeName, String immediateNodeValue, TreeWalker walker) throws XerialException;\r
-\r
-    /**\r
-     * Invoked when text data attached to the current node is found. This event\r
-     * might be invoked one or more times for a node.\r
-     * \r
-     * @param textDataFragment\r
-     *            text data fragment\r
-     * @throws XerialException\r
-     */\r
-    public void text(String nodeName, String textDataFragment, TreeWalker walker) throws XerialException;\r
-\r
-    /**\r
-     * Invoked when leaving a node (in the depth-first manner)\r
-     * \r
-     * @param nodeName\r
-     *            node name to leave\r
-     * \r
-     * @throws XerialException\r
-     */\r
-    public void leaveNode(String nodeName, TreeWalker walker) throws XerialException;\r
-\r
-    /**\r
-     * When the tree visit has finished\r
-     */\r
-    public void finish(TreeWalker walker) throws XerialException;\r
-}\r