public class REProgram
extends java.lang.Object
| 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) |
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-2020 Saxonica Limited. All rights reserved.