Lines Matching refs:Op

509     private Op compile(Token tok, Op next, boolean reverse) {
510 Op ret;
513 ret = Op.createDot();
518 ret = Op.createChar(tok.getChar());
523 ret = Op.createAnchor(tok.getChar());
529 ret = Op.createRange(tok);
547 Op.UnionOp uni = Op.createUnion(tok.size());
572 Op.ChildOp q = Op.createQuestion(tok.type == Token.NONGREEDYCLOSURE);
578 Op.ChildOp op;
580 op = Op.createNonGreedyClosure();
582 op = Op.createClosure(this.numberOfClosures++);
600 ret = Op.createString(tok.getString());
605 ret = Op.createBackReference(tok.getReferenceNumber());
613 next = Op.createCapture(tok.getParenNumber(), next);
615 ret = Op.createCapture(-tok.getParenNumber(), next);
617 next = Op.createCapture(-tok.getParenNumber(), next);
619 ret = Op.createCapture(tok.getParenNumber(), next);
624 ret = Op.createLook(Op.LOOKAHEAD, next, compile(tok.getChild(0), null, false));
627 ret = Op.createLook(Op.NEGATIVELOOKAHEAD, next, compile(tok.getChild(0), null, false));
630 ret = Op.createLook(Op.LOOKBEHIND, next, compile(tok.getChild(0), null, true));
633 ret = Op.createLook(Op.NEGATIVELOOKBEHIND, next, compile(tok.getChild(0), null, true));
637 ret = Op.createIndependent(next, compile(tok.getChild(0), null, reverse));
641 ret = Op.createModifier(next, compile(tok.getChild(0), null, reverse),
649 Op condition = ctok.condition == null ? null : compile(ctok.condition, null, reverse);
650 Op yes = compile(ctok.yes, next, reverse);
651 Op no = ctok.no == null ? null : compile(ctok.no, next, reverse);
652 ret = Op.createCondition(next, ref, condition, yes, no);
784 && this.operations.type == Op.CLOSURE && this.operations.getChild().type == Op.DOT) {
975 && this.operations.type == Op.CLOSURE && this.operations.getChild().type == Op.DOT) {
1045 private int match(Context con, Op op, int offset, int dx, int opts) {
1047 final Stack<Op> opStack = new Stack<>();
1067 case Op.CHAR:
1079 case Op.DOT:
1107 case Op.RANGE:
1108 case Op.NRANGE:
1130 case Op.ANCHOR:
1140 case Op.BACKREFERENCE:
1170 case Op.STRING:
1192 case Op.CLOSURE:
1205 case Op.QUESTION:
1213 case Op.NONGREEDYCLOSURE:
1214 case Op.NONGREEDYQUESTION:
1222 case Op.UNION:
1234 case Op.CAPTURE:
1254 case Op.LOOKAHEAD:
1255 case Op.NEGATIVELOOKAHEAD:
1256 case Op.LOOKBEHIND:
1257 case Op.NEGATIVELOOKBEHIND:
1262 dx = (op.type == Op.LOOKAHEAD || op.type == Op.NEGATIVELOOKAHEAD) ? 1 : -1;
1267 case Op.INDEPENDENT:
1275 case Op.MODIFIER:
1288 case Op.CONDITION:
1290 Op.ConditionOp cop = (Op.ConditionOp)op;
1330 case Op.CLOSURE:
1331 case Op.QUESTION:
1338 case Op.NONGREEDYCLOSURE:
1339 case Op.NONGREEDYQUESTION:
1346 case Op.UNION:
1368 case Op.CAPTURE:
1381 case Op.LOOKAHEAD:
1382 case Op.LOOKBEHIND:
1393 case Op.NEGATIVELOOKAHEAD:
1394 case Op.NEGATIVELOOKBEHIND:
1405 case Op.MODIFIER:
1409 case Op.INDEPENDENT:
1417 case Op.CONDITION:
1419 final Op.ConditionOp cop = (Op.ConditionOp)op;
1444 boolean matchAnchor(ExpressionTarget target, Op op, Context con, int offset, int opts) {
1649 && this.operations.type == Op.CLOSURE && this.operations.getChild().type == Op.DOT) {
1741 transient Op operations = null;
2094 if (Op.COUNT) Op.nofinstances = 0;
2097 if (this.operations.type == Op.CLOSURE && this.operations.getChild().type == Op.DOT) { // .*
2098 Op anchor = Op.createAnchor(isSet(this.options, SINGLE_LINE) ? 'A' : '@');
2103 if (Op.COUNT) System.err.println("DEBUG: The number of operations: "+Op.nofinstances);
2121 && (this.operations.type == Op.STRING || this.operations.type == Op.CHAR)
2126 if (this.operations.type == Op.STRING)
2128 else if (this.operations.getData() >= 0x10000) { // Op.CHAR