    001    package org.maltparser.core.syntaxgraph.node;
    002
    003    public interface TokenNode extends DependencyNode, PhraseStructureNode {
    004            /**
    005             * Sets the predecessor token node in the linear order of the token nodes.
    006             *
    007             * @param predecessor the predecessor token node
    008             */
    009            public void setPredecessor(TokenNode predecessor);
    010            /**
    011             * Sets the predecessor token node in the linear order of the token nodes.
    012             *
    013             * @param successor the successor token node
    014             */
    015            public void setSuccessor(TokenNode successor);
    016            /**
    017             * Returns the predecessor token node in the linear order of the token nodes.
    018             *
    019             * @return the predecessor token node in the linear order of the token nodes.
    020             */
    021            public TokenNode getPredecessor();
    022            /**
    023             * Returns the successor token node in the linear order of the token nodes.
    024             *
    025             * @return the successor token node in the linear order of the token nodes.
    026             */
    027            public TokenNode getSuccessor();
    028    }