Lines Matching refs:Op

30 class Op {
55 static Op createDot() {
56 if (Op.COUNT) Op.nofinstances ++;
57 return new Op(Op.DOT);
60 if (Op.COUNT) Op.nofinstances ++;
61 return new CharOp(Op.CHAR, data);
64 if (Op.COUNT) Op.nofinstances ++;
65 return new CharOp(Op.ANCHOR, data);
67 static CharOp createCapture(int number, Op next) {
68 if (Op.COUNT) Op.nofinstances ++;
69 CharOp op = new CharOp(Op.CAPTURE, number);
74 if (Op.COUNT) Op.nofinstances ++;
76 return new UnionOp(Op.UNION, size);
79 if (Op.COUNT) Op.nofinstances ++;
80 return new ModifierOp(Op.CLOSURE, id, -1);
83 if (Op.COUNT) Op.nofinstances ++;
84 return new ChildOp(Op.NONGREEDYCLOSURE);
87 if (Op.COUNT) Op.nofinstances ++;
88 return new ChildOp(nongreedy ? Op.NONGREEDYQUESTION : Op.QUESTION);
91 if (Op.COUNT) Op.nofinstances ++;
92 return new RangeOp(Op.RANGE, tok);
94 static ChildOp createLook(int type, Op next, Op branch) {
95 if (Op.COUNT) Op.nofinstances ++;
102 if (Op.COUNT) Op.nofinstances ++;
103 return new CharOp(Op.BACKREFERENCE, refno);
106 if (Op.COUNT) Op.nofinstances ++;
107 return new StringOp(Op.STRING, literal);
109 static ChildOp createIndependent(Op next, Op branch) {
110 if (Op.COUNT) Op.nofinstances ++;
111 ChildOp op = new ChildOp(Op.INDEPENDENT);
116 static ModifierOp createModifier(Op next, Op branch, int add, int mask) {
117 if (Op.COUNT) Op.nofinstances ++;
118 ModifierOp op = new ModifierOp(Op.MODIFIER, add, mask);
123 static ConditionOp createCondition(Op next, int ref, Op conditionflow, Op yesflow, Op noflow) {
124 if (Op.COUNT) Op.nofinstances ++;
125 ConditionOp op = new ConditionOp(Op.CONDITION, ref, conditionflow, yesflow, noflow);
131 Op next = null;
133 protected Op(int type) {
140 Op elementAt(int index) { // for UNIoN
143 Op getChild() { // for CLOSURE, QUESTION
161 static class CharOp extends Op {
173 static class UnionOp extends Op {
174 final ArrayList<Op> branches;
179 void addElement(Op op) {
185 Op elementAt(int index) {
191 static class ChildOp extends Op {
192 Op child;
196 void setChild(Op child) {
199 Op getChild() {
220 static class RangeOp extends Op {
231 static class StringOp extends Op {
242 static class ConditionOp extends Op {
244 final Op condition;
245 final Op yes;
246 final Op no;
247 ConditionOp(int type, int refno, Op conditionflow, Op yesflow, Op noflow) {