Operation.OpAtom, Operation.OpBackReference, Operation.OpBOL, Operation.OpBranch, Operation.OpCharClass, Operation.OpClose, Operation.OpCloseCluster, Operation.OpConfidentPlus, Operation.OpConfidentStar, Operation.OpContinue, Operation.OpEndProgram, Operation.OpEOL, Operation.OpGoTo, Operation.OpMaybe, Operation.OpNothing, Operation.OpOpen, Operation.OpOpenCluster, Operation.OpPlus, Operation.OpReluctantMaybe, Operation.OpReluctantPlus, Operation.OpReluctantStar, Operation.OpStar
ACTION_ADVANCE_TO_FOLLOWING, ACTION_ADVANCE_TO_NEXT, ACTION_ADVANCE_TO_NEXT_NEXT, ACTION_RETURN, next
Constructor and Description |
---|
Operation.OpBranch() |
Modifier and Type | Method and Description |
---|---|
int |
exec(REMatcher matcher,
int node,
int idx)
Execute the operation
|
int |
nextAction(int idx)
Determine the action to take after calling exec()
|
String |
toString() |
public int exec(REMatcher matcher, int node, int idx)
Operation
matcher
- the REMatchernode
- the program node containing this operationidx
- the current position in the input stringpublic int nextAction(int idx)
Operation
nextAction
in class Operation
idx
- the value returned by exec()Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.