public class PatternExpression extends NativeExpression implements Matcher
Instruction.BackCommitInstruction, Instruction.BacktrackInstruction, Instruction.CallInstruction, Instruction.ChoiceInstruction, Instruction.CommitInstruction, Instruction.CommitVerifyInstruction, Instruction.EndInstruction, Instruction.FailTwiceInstruction, Instruction.IgnoreErrorsInstruction, Instruction.JumpInstruction, Instruction.PredicateChoiceInstruction, Instruction.RetInstruction| Constructor and Description |
|---|
PatternExpression(String regex) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Machine machine)
Executes this instruction.
|
String |
toString() |
compileaddAll, backCommit, backtrack, call, choice, commit, commitVerify, end, failTwice, ignoreErrors, jump, predicateChoice, retpublic PatternExpression(String regex)
PatternSyntaxException - if the expression's syntax is invalidpublic void execute(Machine machine)
Instructionexecute in class InstructionGrammarException - if execution of regular expression has led to StackOverflowErrorCopyright © 2009–2018 SonarSource. All rights reserved.