/** * If FIXED_ENDER option is used this method returns the length of fixed end. * For example fixed end length for .*end is 3. * @return */ public int getFixedEndLength() { // if DFAState<R> has fixed end length it must have only one NFAState if (nfaSet.size() == 1) { for (NFAState<T> nfa : nfaSet) { return nfa.getFixedEndLength(); } } return 0; }