Uses of Class
dk.brics.automaton.Automaton
-
-
Uses of Automaton in dk.brics.automaton
Fields in dk.brics.automaton declared as Automaton Modifier and Type Field Description private static AutomatonMatchOnlyRunAutomaton. WILDCARD_ZERO_OR_MOREprivate static AutomatonDatatypes. wsFields in dk.brics.automaton with type parameters of type Automaton Modifier and Type Field Description private static java.util.Map<java.lang.String,Automaton>Datatypes. automataMethods in dk.brics.automaton that return Automaton Modifier and Type Method Description private static AutomatonMatchOnlyRunAutomaton. addWildcard(Automaton automaton)AutomatonAutomaton. clone()Returns a clone of this automaton.(package private) AutomatonAutomaton. cloneExpanded()Returns a clone of this automaton, expands if singleton.(package private) AutomatonAutomaton. cloneExpandedIfRequired()Returns a clone of this automaton unlessallow_mutationis set, expands if singleton.(package private) AutomatonAutomaton. cloneIfRequired()Returns a clone of this automaton, or this automaton itself ifallow_mutationflag is set.AutomatonAutomaton. complement()static AutomatonBasicOperations. complement(Automaton a)Returns a (deterministic) automaton that accepts the complement of the language of the given automaton.AutomatonAutomaton. compress(java.lang.String set, char c)static AutomatonSpecialOperations. compress(Automaton a, java.lang.String set, char c)Returns an automaton that accepts the compressed language of the given automaton.AutomatonAutomaton. concatenate(Automaton a)static AutomatonAutomaton. concatenate(java.util.List<Automaton> l)static AutomatonBasicOperations. concatenate(Automaton a1, Automaton a2)Returns an automaton that accepts the concatenation of the languages of the given automata.static AutomatonBasicOperations. concatenate(java.util.List<Automaton> l)Returns an automaton that accepts the concatenation of the languages of the given automata.static AutomatonDatatypes. get(java.lang.String name)Returns pre-built automaton.AutomatonAutomatonProvider. getAutomaton(java.lang.String name)Returns automaton of the given name.AutomatonDatatypesAutomatonProvider. getAutomaton(java.lang.String name)(package private) static AutomatonDatatypes. getWhitespaceAutomaton()static AutomatonAutomaton. hexCases(Automaton a)static AutomatonSpecialOperations. hexCases(Automaton a)Constructs automaton that accepts the same strings as the given automaton but ignores upper/lower case of A-F.AutomatonAutomaton. homomorph(char[] source, char[] dest)static AutomatonSpecialOperations. homomorph(Automaton a, char[] source, char[] dest)Returns an automaton accepting the homomorphic image of the given automaton using the given function.AutomatonAutomaton. intersection(Automaton a)static AutomatonBasicOperations. intersection(Automaton a1, Automaton a2)Returns an automaton that accepts the intersection of the languages of the given automata.static AutomatonAutomaton. load(java.io.InputStream stream)Retrieves a serializedAutomatonfrom a stream.static AutomatonAutomaton. load(java.net.URL url)Retrieves a serializedAutomatonlocated by a URL.private static AutomatonDatatypes. load(java.lang.String name)static AutomatonAutomaton. makeAnyChar()static AutomatonBasicAutomata. makeAnyChar()Returns a new (deterministic) automaton that accepts any single character.static AutomatonAutomaton. makeAnyString()static AutomatonBasicAutomata. makeAnyString()Returns a new (deterministic) automaton that accepts all strings.static AutomatonAutomaton. makeChar(char c)static AutomatonBasicAutomata. makeChar(char c)Returns a new (deterministic) automaton that accepts a single character of the given value.static AutomatonAutomaton. makeCharRange(char min, char max)static AutomatonBasicAutomata. makeCharRange(char min, char max)Returns a new (deterministic) automaton that accepts a single char whose value is in the given interval (including both end points).static AutomatonAutomaton. makeCharSet(java.lang.String set)static AutomatonBasicAutomata. makeCharSet(java.lang.String set)Returns a new (deterministic) automaton that accepts a single character in the given set.private static AutomatonDatatypes. makeCodePoint(int cp)private static AutomatonDatatypes. makeCodePointRange(int from, int to)Returns an automaton accepting the UTF-16 representations of the code points in the given range.static AutomatonAutomaton. makeDecimalValue(java.lang.String value)static AutomatonBasicAutomata. makeDecimalValue(java.lang.String value)Constructs automaton that accept strings representing the given decimal number.static AutomatonAutomaton. makeEmpty()static AutomatonBasicAutomata. makeEmpty()Returns a new (deterministic) automaton with the empty language.static AutomatonAutomaton. makeEmptyString()static AutomatonBasicAutomata. makeEmptyString()Returns a new (deterministic) automaton that accepts only the empty string.static AutomatonAutomaton. makeFractionDigits(int i)static AutomatonBasicAutomata. makeFractionDigits(int i)Constructs automaton that accept strings representing decimal numbers that can be written with at most the given number of digits in the fraction part.static AutomatonAutomaton. makeIntegerValue(java.lang.String value)static AutomatonBasicAutomata. makeIntegerValue(java.lang.String value)Constructs automaton that accept strings representing the given integer.static AutomatonAutomaton. makeInterval(int min, int max, int digits)static AutomatonBasicAutomata. makeInterval(int min, int max, int digits)Returns a new automaton that accepts strings representing decimal non-negative integers in the given interval.static AutomatonAutomaton. makeMaxInteger(java.lang.String n)static AutomatonBasicAutomata. makeMaxInteger(java.lang.String n)Constructs automaton that accept strings representing nonnegative integers that are not larger than the given value.static AutomatonAutomaton. makeMinInteger(java.lang.String n)static AutomatonBasicAutomata. makeMinInteger(java.lang.String n)Constructs automaton that accept strings representing nonnegative integers that are not less that the given value.static AutomatonAutomaton. makeString(java.lang.String s)static AutomatonBasicAutomata. makeString(java.lang.String s)Returns a new (deterministic) automaton that accepts the single given string.static AutomatonAutomaton. makeStringMatcher(java.lang.String s)static AutomatonBasicAutomata. makeStringMatcher(java.lang.String s)Constructs deterministic automaton that matches strings that contain the given substring.static AutomatonAutomaton. makeStringUnion(java.lang.CharSequence... strings)static AutomatonBasicAutomata. makeStringUnion(java.lang.CharSequence... strings)Returns a new (deterministic and minimal) automaton that accepts the union of the given set of strings.static AutomatonAutomaton. makeTotalDigits(int i)static AutomatonBasicAutomata. makeTotalDigits(int i)Constructs automaton that accept strings representing decimal numbers that can be written with at most the given number of digits.static AutomatonAutomaton. minimize(Automaton a)AutomatonAutomaton. minus(Automaton a)static AutomatonBasicOperations. minus(Automaton a1, Automaton a2)Returns a (deterministic) automaton that accepts the intersection of the language ofa1and the complement of the language ofa2.AutomatonAutomaton. optional()static AutomatonBasicOperations. optional(Automaton a)Returns an automaton that accepts the union of the empty string and the language of the given automaton.AutomatonAutomaton. overlap(Automaton a)static AutomatonSpecialOperations. overlap(Automaton a1, Automaton a2)Returns an automaton that accepts the overlap of strings that in more than one way can be split into a left part being accepted bya1and a right part being accepted bya2.AutomatonAutomaton. projectChars(java.util.Set<java.lang.Character> chars)static AutomatonSpecialOperations. projectChars(Automaton a, java.util.Set<java.lang.Character> chars)Returns an automaton with projected alphabet.AutomatonAutomaton. repeat()AutomatonAutomaton. repeat(int min)AutomatonAutomaton. repeat(int min, int max)static AutomatonBasicOperations. repeat(Automaton a)Returns an automaton that accepts the Kleene star (zero or more concatenated repetitions) of the language of the given automaton.static AutomatonBasicOperations. repeat(Automaton a, int min)Returns an automaton that acceptsminor more concatenated repetitions of the language of the given automaton.static AutomatonBasicOperations. repeat(Automaton a, int min, int max)Returns an automaton that accepts betweenminandmax(including both) concatenated repetitions of the language of the given automaton.static AutomatonAutomaton. replaceWhitespace(Automaton a)static AutomatonSpecialOperations. replaceWhitespace(Automaton a)Constructs automaton that accepts 0x20, 0x9, 0xa, and 0xd in place of each 0x20 transition in the given automaton.AutomatonAutomaton. shuffle(Automaton a)static AutomatonShuffleOperations. shuffle(Automaton a1, Automaton a2)Returns an automaton that accepts the shuffle (interleaving) of the languages of the given automata.AutomatonAutomaton. singleChars()static AutomatonSpecialOperations. singleChars(Automaton a)Returns an automaton that accepts the single chars that occur in strings that are accepted by the given automaton.AutomatonAutomaton. subst(char c, java.lang.String s)AutomatonAutomaton. subst(java.util.Map<java.lang.Character,java.util.Set<java.lang.Character>> map)static AutomatonSpecialOperations. subst(Automaton a, char c, java.lang.String s)Returns an automaton where all transitions of the given char are replaced by a string.static AutomatonSpecialOperations. subst(Automaton a, java.util.Map<java.lang.Character,java.util.Set<java.lang.Character>> map)Returns an automaton where all transition labels have been substituted.AutomatonRegExp. toAutomaton()Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(boolean minimize)Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(AutomatonProvider automaton_provider)Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(AutomatonProvider automaton_provider, boolean minimize)Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata)Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata, boolean minimize)Constructs newAutomatonfrom thisRegExp.private AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)private AutomatonRegExp. toAutomatonAllowMutate(java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)AutomatonAutomaton. trim(java.lang.String set, char c)static AutomatonSpecialOperations. trim(Automaton a, java.lang.String set, char c)Returns an automaton that accepts the trimmed language of the given automaton.AutomatonAutomaton. union(Automaton a)static AutomatonAutomaton. union(java.util.Collection<Automaton> l)static AutomatonBasicOperations. union(Automaton a1, Automaton a2)Returns an automaton that accepts the union of the languages of the given automata.static AutomatonBasicOperations. union(java.util.Collection<Automaton> l)Returns an automaton that accepts the union of the languages of the given automata.Methods in dk.brics.automaton that return types with arguments of type Automaton Modifier and Type Method Description private static java.util.Map<java.lang.String,Automaton>Datatypes. buildMap(java.lang.String[] exps)Methods in dk.brics.automaton with parameters of type Automaton Modifier and Type Method Description private static voidSpecialOperations. acceptToAccept(Automaton a)static voidBasicOperations. addEpsilons(Automaton a, java.util.Collection<StatePair> pairs)Adds epsilon transitions to the given automaton.private static java.util.Set<StatePair>SpecialOperations. addInnerSetStates(Automaton a, java.lang.String set, char c)For each transition oncfrom a statesto a stater, adds a stateqwith transitions on thesetcharacters fromsandqtoq.private static AutomatonMatchOnlyRunAutomaton. addWildcard(Automaton automaton)static AutomatonBasicOperations. complement(Automaton a)Returns a (deterministic) automaton that accepts the complement of the language of the given automaton.static AutomatonSpecialOperations. compress(Automaton a, java.lang.String set, char c)Returns an automaton that accepts the compressed language of the given automaton.AutomatonAutomaton. concatenate(Automaton a)static AutomatonBasicOperations. concatenate(Automaton a1, Automaton a2)Returns an automaton that accepts the concatenation of the languages of the given automata.static voidBasicOperations. determinize(Automaton a)Determinizes the given automaton.(package private) static voidBasicOperations. determinize(Automaton a, java.util.Set<State> initialset)Determinizes the given automaton using the given set of initial states.static java.lang.StringSpecialOperations. getCommonPrefix(Automaton a)Returns the longest string that is a prefix of all accepted strings and visits each state at most once.static java.util.Set<java.lang.String>SpecialOperations. getFiniteStrings(Automaton a)Returns the set of accepted strings, assuming this automaton has a finite language.static java.util.Set<java.lang.String>SpecialOperations. getFiniteStrings(Automaton a, int limit)Returns the set of accepted strings, assuming that at mostlimitstrings are accepted.static java.lang.StringBasicOperations. getShortestExample(Automaton a, boolean accepted)Returns a shortest accepted/rejected string.static java.util.Set<java.lang.String>SpecialOperations. getStrings(Automaton a, int length)Returns the set of accepted strings of the given length.static AutomatonAutomaton. hexCases(Automaton a)static AutomatonSpecialOperations. hexCases(Automaton a)Constructs automaton that accepts the same strings as the given automaton but ignores upper/lower case of A-F.static AutomatonSpecialOperations. homomorph(Automaton a, char[] source, char[] dest)Returns an automaton accepting the homomorphic image of the given automaton using the given function.AutomatonAutomaton. intersection(Automaton a)static AutomatonBasicOperations. intersection(Automaton a1, Automaton a2)Returns an automaton that accepts the intersection of the languages of the given automata.static booleanBasicOperations. isEmpty(Automaton a)Returns true if the given automaton accepts no strings.static booleanBasicOperations. isEmptyString(Automaton a)Returns true if the given automaton accepts the empty string and nothing else.static booleanSpecialOperations. isFinite(Automaton a)Returns true if the language of this automaton is finite.static booleanBasicOperations. isTotal(Automaton a)Returns true if the given automaton accepts all strings.static AutomatonAutomaton. minimize(Automaton a)static voidMinimizationOperations. minimize(Automaton a)Minimizes (and determinizes if not already deterministic) the given automaton.static voidMinimizationOperations. minimizeBrzozowski(Automaton a)Minimizes the given automaton using Brzozowski's algorithm.static voidMinimizationOperations. minimizeHopcroft(Automaton a)Minimizes the given automaton using Hopcroft's algorithm.static voidMinimizationOperations. minimizeHuffman(Automaton a)Minimizes the given automaton using Huffman's algorithm.static voidMinimizationOperations. minimizeValmari(Automaton automaton)Minimizes the given automaton using Valmari's algorithm.AutomatonAutomaton. minus(Automaton a)static AutomatonBasicOperations. minus(Automaton a1, Automaton a2)Returns a (deterministic) automaton that accepts the intersection of the language ofa1and the complement of the language ofa2.static AutomatonBasicOperations. optional(Automaton a)Returns an automaton that accepts the union of the empty string and the language of the given automaton.AutomatonAutomaton. overlap(Automaton a)static AutomatonSpecialOperations. overlap(Automaton a1, Automaton a2)Returns an automaton that accepts the overlap of strings that in more than one way can be split into a left part being accepted bya1and a right part being accepted bya2.static voidSpecialOperations. prefixClose(Automaton a)Prefix closes the given automaton.static AutomatonSpecialOperations. projectChars(Automaton a, java.util.Set<java.lang.Character> chars)Returns an automaton with projected alphabet.private static voidDatatypes. put(java.util.Map<java.lang.String,Automaton> map, java.lang.String name, Automaton a)static AutomatonBasicOperations. repeat(Automaton a)Returns an automaton that accepts the Kleene star (zero or more concatenated repetitions) of the language of the given automaton.static AutomatonBasicOperations. repeat(Automaton a, int min)Returns an automaton that acceptsminor more concatenated repetitions of the language of the given automaton.static AutomatonBasicOperations. repeat(Automaton a, int min, int max)Returns an automaton that accepts betweenminandmax(including both) concatenated repetitions of the language of the given automaton.static AutomatonAutomaton. replaceWhitespace(Automaton a)static AutomatonSpecialOperations. replaceWhitespace(Automaton a)Constructs automaton that accepts 0x20, 0x9, 0xa, and 0xd in place of each 0x20 transition in the given automaton.static java.util.Set<State>SpecialOperations. reverse(Automaton a)Reverses the language of the given (non-singleton) automaton while returning the set of new initial states.static booleanBasicOperations. run(Automaton a, java.lang.String s)Returns true if the given string is accepted by the automaton.AutomatonAutomaton. shuffle(Automaton a)static AutomatonShuffleOperations. shuffle(Automaton a1, Automaton a2)Returns an automaton that accepts the shuffle (interleaving) of the languages of the given automata.static java.lang.StringAutomaton. shuffleSubsetOf(java.util.Collection<Automaton> ca, Automaton a, java.lang.Character suspend_shuffle, java.lang.Character resume_shuffle)static java.lang.StringShuffleOperations. shuffleSubsetOf(java.util.Collection<Automaton> ca, Automaton a, java.lang.Character suspend_shuffle, java.lang.Character resume_shuffle)Returns a string that is an interleaving of strings that are accepted bycabut not bya.static AutomatonSpecialOperations. singleChars(Automaton a)Returns an automaton that accepts the single chars that occur in strings that are accepted by the given automaton.private static voidDatatypes. store(java.lang.String name, Automaton a)booleanAutomaton. subsetOf(Automaton a)static booleanBasicOperations. subsetOf(Automaton a1, Automaton a2)Returns true if the language ofa1is a subset of the language ofa2.static AutomatonSpecialOperations. subst(Automaton a, char c, java.lang.String s)Returns an automaton where all transitions of the given char are replaced by a string.static AutomatonSpecialOperations. subst(Automaton a, java.util.Map<java.lang.Character,java.util.Set<java.lang.Character>> map)Returns an automaton where all transition labels have been substituted.static AutomatonSpecialOperations. trim(Automaton a, java.lang.String set, char c)Returns an automaton that accepts the trimmed language of the given automaton.AutomatonAutomaton. union(Automaton a)static AutomatonBasicOperations. union(Automaton a1, Automaton a2)Returns an automaton that accepts the union of the languages of the given automata.Method parameters in dk.brics.automaton with type arguments of type Automaton Modifier and Type Method Description static AutomatonAutomaton. concatenate(java.util.List<Automaton> l)static AutomatonBasicOperations. concatenate(java.util.List<Automaton> l)Returns an automaton that accepts the concatenation of the languages of the given automata.private voidRegExp. findLeaves(RegExp exp, RegExp.Kind kind, java.util.List<Automaton> list, java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)private voidRegExp. findLeaves(RegExp exp, RegExp.Kind kind, java.util.List<Automaton> list, java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)private static voidDatatypes. put(java.util.Map<java.lang.String,Automaton> map, java.lang.String name, Automaton a)private static voidDatatypes. putFrom(java.lang.String name, java.util.Map<java.lang.String,Automaton> from)private static voidDatatypes. putWith(java.lang.String[] exps, java.util.Map<java.lang.String,Automaton> use)static java.lang.StringAutomaton. shuffleSubsetOf(java.util.Collection<Automaton> ca, Automaton a, java.lang.Character suspend_shuffle, java.lang.Character resume_shuffle)static java.lang.StringShuffleOperations. shuffleSubsetOf(java.util.Collection<Automaton> ca, Automaton a, java.lang.Character suspend_shuffle, java.lang.Character resume_shuffle)Returns a string that is an interleaving of strings that are accepted bycabut not bya.AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata)Constructs newAutomatonfrom thisRegExp.AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata, boolean minimize)Constructs newAutomatonfrom thisRegExp.private AutomatonRegExp. toAutomaton(java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)private AutomatonRegExp. toAutomatonAllowMutate(java.util.Map<java.lang.String,Automaton> automata, AutomatonProvider automaton_provider, boolean minimize)static AutomatonAutomaton. union(java.util.Collection<Automaton> l)static AutomatonBasicOperations. union(java.util.Collection<Automaton> l)Returns an automaton that accepts the union of the languages of the given automata.Constructors in dk.brics.automaton with parameters of type Automaton Constructor Description MatchOnlyRunAutomaton(Automaton a)MatchOnlyRunAutomaton(Automaton a, boolean tableize)RunAutomaton(Automaton a)Constructs a newRunAutomatonfrom a deterministicAutomaton.RunAutomaton(Automaton a, boolean tableize)Constructs a newRunAutomatonfrom a deterministicAutomaton.RunAutomaton(Automaton a, boolean tableize, java.lang.Integer overrideAcceptedTransition)Constructs a newRunAutomatonfrom a deterministicAutomaton.ShuffleConfiguration(java.util.Collection<Automaton> ca, Automaton a)Constructor parameters in dk.brics.automaton with type arguments of type Automaton Constructor Description ShuffleConfiguration(java.util.Collection<Automaton> ca, Automaton a)
-