Package org.elasticsearch.common.lucene
Class RegExp
java.lang.Object
org.elasticsearch.common.lucene.RegExp
Simple wrapper for
RegExp
that
avoids throwing StackOverflowError
s when working with regular
expressions as this will crash an Elasticsearch node. Instead, these
StackOverflowErrors are turned into
IllegalArgumentException
s which elasticsearch returns as
a http 400.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
c()
Character expression.exp1()
Child expressions held by a container type expression.exp2()
Child expressions held by a container type expression.org.apache.lucene.util.automaton.RegExp.Kind
kind()
The type of expression.int
min()
Limits for repeatable type expressions.s()
String expression.org.apache.lucene.util.automaton.Automaton
org.apache.lucene.util.automaton.Automaton
toAutomaton
(int determinizeWorkLimit) toString()
-
Constructor Details
-
RegExp
-
RegExp
-
RegExp
-
-
Method Details
-
toAutomaton
public org.apache.lucene.util.automaton.Automaton toAutomaton() -
toAutomaton
public org.apache.lucene.util.automaton.Automaton toAutomaton(int determinizeWorkLimit) -
getOriginalString
-
toString
-
kind
public org.apache.lucene.util.automaton.RegExp.Kind kind()The type of expression. -
exp1
Child expressions held by a container type expression. -
exp2
Child expressions held by a container type expression. -
min
public int min()Limits for repeatable type expressions. -
s
String expression. -
c
public int c()Character expression.
-