public abstract class Instruction extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Instruction.BackCommitInstruction |
static class |
Instruction.BacktrackInstruction |
static class |
Instruction.CallInstruction |
static class |
Instruction.ChoiceInstruction |
static class |
Instruction.CommitInstruction |
static class |
Instruction.CommitVerifyInstruction |
static class |
Instruction.EndInstruction |
static class |
Instruction.FailTwiceInstruction |
static class |
Instruction.IgnoreErrorsInstruction |
static class |
Instruction.JumpInstruction |
static class |
Instruction.PredicateChoiceInstruction
Instruction dedicated for predicates.
|
static class |
Instruction.RetInstruction |
Constructor and Description |
---|
Instruction() |
Modifier and Type | Method and Description |
---|---|
static void |
addAll(List<Instruction> list,
Instruction[] array) |
static Instruction |
backCommit(int offset) |
static Instruction |
backtrack() |
static Instruction |
call(int offset,
Matcher matcher) |
static Instruction |
choice(int offset) |
static Instruction |
commit(int offset) |
static Instruction |
commitVerify(int offset) |
static Instruction |
end() |
abstract void |
execute(Machine machine)
Executes this instruction.
|
static Instruction |
failTwice() |
static Instruction |
ignoreErrors() |
static Instruction |
jump(int offset) |
static Instruction |
predicateChoice(int offset) |
static Instruction |
ret() |
public static void addAll(List<Instruction> list, Instruction[] array)
public static Instruction jump(int offset)
public static Instruction call(int offset, Matcher matcher)
public static Instruction ret()
public static Instruction backtrack()
public static Instruction end()
public static Instruction choice(int offset)
public static Instruction predicateChoice(int offset)
public static Instruction commit(int offset)
public static Instruction commitVerify(int offset)
public static Instruction failTwice()
public static Instruction backCommit(int offset)
public static Instruction ignoreErrors()
public abstract void execute(Machine machine)
Copyright © 2009–2017 SonarSource. All rights reserved.