All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.java.com.ctc.wstx.dtd.ModelNode Maven / Gradle / Ivy

package com.ctc.wstx.dtd;

import java.util.BitSet;
import java.util.List;

/**
 * Abstract base class for classes constructed from {@link ContentSpec}
 * objects, when they get rewritten (when their {@link ContentSpec#rewrite}
 * gets called). These nodes are then used for constructing complete DFA
 * states for validation.
 */
public abstract class ModelNode
{
    /*
    ///////////////////////////////////////////////////
    // Methods needed for DFA construction
    ///////////////////////////////////////////////////
     */

    /**
     * Method that has to create a deep copy of the model, without
     * sharing any of existing Objects.
     */
    public abstract ModelNode cloneModel();

    public abstract boolean isNullable();

    public abstract void indexTokens(List tokens);

    public abstract void addFirstPos(BitSet firstPos);

    public abstract void addLastPos(BitSet firstPos);

    public abstract void calcFollowPos(BitSet[] followPosSets);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy