public class REProgram extends Object implements Serializable
REMatcher
,
RECompiler
,
Serialized FormConstructor and Description |
---|
REProgram(Operation[] instructions,
int parens,
REFlags flags)
Constructs a program object from a character array
|
Modifier and Type | Method and Description |
---|---|
void |
display(PrintStream out)
Output a human-readable printout of the program
|
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
|
void |
setNullable(boolean nullable)
Say whether the regular expression matches a zero length string
|
public REProgram(Operation[] instructions, int parens, REFlags flags)
parens
- Count of parens in the programinstructions
- Array with RE opcode instructions in it. The "next"
pointers within the operations must already have been converted to absolute
offsets.public boolean isNullable()
public void setNullable(boolean nullable)
nullable
- true if the regex matches a zero length stringpublic UnicodeString getPrefix()
getPrefix
will return null.public void display(PrintStream out)
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.