public class REProgram
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
backtrackingLimit |
protected int |
fixedLength |
protected REFlags |
flags |
protected IntPredicateProxy |
initialCharClass |
protected int |
maxParens |
protected int |
minimumLength |
protected Operation |
operation |
protected static int |
OPT_HASBACKREFS |
protected static int |
OPT_HASBOL |
protected int |
optimizationFlags |
protected java.util.List<RegexPrecondition> |
preconditions |
protected UnicodeString |
prefix |
Constructor and Description |
---|
REProgram(Operation operation,
int parens,
REFlags flags)
Constructs a program object from a character array
|
Modifier and Type | Method and Description |
---|---|
int |
getBacktrackingLimit() |
UnicodeString |
getPrefix()
Returns a copy of the prefix of current regular expression program
in a character array.
|
boolean |
isNullable()
Ask whether the regular expression is known statically to match a zero length string
|
void |
setBacktrackingLimit(int limit) |
protected static final int OPT_HASBACKREFS
protected static final int OPT_HASBOL
protected Operation operation
protected REFlags flags
protected UnicodeString prefix
protected IntPredicateProxy initialCharClass
protected java.util.List<RegexPrecondition> preconditions
protected int minimumLength
protected int fixedLength
protected int optimizationFlags
protected int maxParens
protected int backtrackingLimit
public REProgram(Operation operation, int parens, REFlags flags)
operation
- Array with RE opcode instructions in it. The "next"parens
- Count of parens in the program
pointers within the operations must already have been converted to absolute
offsets.flags
- the regular expression flagspublic void setBacktrackingLimit(int limit)
public int getBacktrackingLimit()
public boolean isNullable()
public UnicodeString getPrefix()
getPrefix
will return null.Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.