public class REProgram extends 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 |
---|---|
UnicodeString |
getPrefix()
Returns a copy of the prefix of current regular expression program
in a character array.
|
boolean |
isNullable()
Ask whether the regular expression matches a zero length string
|
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 boolean isNullable()
public UnicodeString getPrefix()
getPrefix
will return null.Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.