FileDocCategorySizeDatePackage
Op.javaAPI DocJava SE 5 API10594Fri Aug 26 14:55:48 BST 2005com.sun.org.apache.xerces.internal.impl.xpath.regex

Op

public class Op extends Object
version
$Id: Op.java,v 1.3 2002/08/09 15:18:17 neilg Exp $

Fields Summary
static final int
DOT
static final int
CHAR
static final int
RANGE
static final int
NRANGE
static final int
ANCHOR
static final int
STRING
static final int
CLOSURE
static final int
NONGREEDYCLOSURE
static final int
QUESTION
static final int
NONGREEDYQUESTION
static final int
UNION
static final int
CAPTURE
static final int
BACKREFERENCE
static final int
LOOKAHEAD
static final int
NEGATIVELOOKAHEAD
static final int
LOOKBEHIND
static final int
NEGATIVELOOKBEHIND
static final int
INDEPENDENT
static final int
MODIFIER
static final int
CONDITION
static int
nofinstances
static final boolean
COUNT
int
type
Op
next
Constructors Summary
protected Op(int type)


       
        this.type = type;
    
Methods Summary
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$CharOpcreateAnchor(int data)

        if (Op.COUNT)  Op.nofinstances ++;
        return new CharOp(Op.ANCHOR, data);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$CharOpcreateBackReference(int refno)

        if (Op.COUNT)  Op.nofinstances ++;
        return new CharOp(Op.BACKREFERENCE, refno);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$CharOpcreateCapture(int number, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op next)

        if (Op.COUNT)  Op.nofinstances ++;
        CharOp op = new CharOp(Op.CAPTURE, number);
        op.next = next;
        return op;
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$CharOpcreateChar(int data)

        if (Op.COUNT)  Op.nofinstances ++;
        return new CharOp(Op.CHAR, data);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ChildOpcreateClosure(int id)

        if (Op.COUNT)  Op.nofinstances ++;
        return new ModifierOp(Op.CLOSURE, id, -1);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ConditionOpcreateCondition(com.sun.org.apache.xerces.internal.impl.xpath.regex.Op next, int ref, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op conditionflow, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op yesflow, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op noflow)

        if (Op.COUNT)  Op.nofinstances ++;
        ConditionOp op = new ConditionOp(Op.CONDITION, ref, conditionflow, yesflow, noflow);
        op.next = next;
        return op;
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.OpcreateDot()


       
        if (Op.COUNT)  Op.nofinstances ++;
        return new Op(Op.DOT);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ChildOpcreateIndependent(com.sun.org.apache.xerces.internal.impl.xpath.regex.Op next, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op branch)

        if (Op.COUNT)  Op.nofinstances ++;
        ChildOp op = new ChildOp(Op.INDEPENDENT);
        op.setChild(branch);
        op.next = next;
        return op;
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ChildOpcreateLook(int type, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op next, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op branch)

        if (Op.COUNT)  Op.nofinstances ++;
        ChildOp op = new ChildOp(type);
        op.setChild(branch);
        op.next = next;
        return op;
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ModifierOpcreateModifier(com.sun.org.apache.xerces.internal.impl.xpath.regex.Op next, com.sun.org.apache.xerces.internal.impl.xpath.regex.Op branch, int add, int mask)

        if (Op.COUNT)  Op.nofinstances ++;
        ModifierOp op = new ModifierOp(Op.MODIFIER, add, mask);
        op.setChild(branch);
        op.next = next;
        return op;
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ChildOpcreateNonGreedyClosure()

        if (Op.COUNT)  Op.nofinstances ++;
        return new ChildOp(Op.NONGREEDYCLOSURE);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$ChildOpcreateQuestion(boolean nongreedy)

        if (Op.COUNT)  Op.nofinstances ++;
        return new ChildOp(nongreedy ? Op.NONGREEDYQUESTION : Op.QUESTION);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$RangeOpcreateRange(com.sun.org.apache.xerces.internal.impl.xpath.regex.Token tok)

        if (Op.COUNT)  Op.nofinstances ++;
        return new RangeOp(Op.RANGE, tok);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$StringOpcreateString(java.lang.String literal)

        if (Op.COUNT)  Op.nofinstances ++;
        return new StringOp(Op.STRING, literal);
    
static com.sun.org.apache.xerces.internal.impl.xpath.regex.Op$UnionOpcreateUnion(int size)

        if (Op.COUNT)  Op.nofinstances ++;
        //System.err.println("Creates UnionOp");
        return new UnionOp(Op.UNION, size);
    
com.sun.org.apache.xerces.internal.impl.xpath.regex.OpelementAt(int index)

                   // for UNIoN
        throw new RuntimeException("Internal Error: type="+this.type);
    
com.sun.org.apache.xerces.internal.impl.xpath.regex.OpgetChild()

                             // for CLOSURE, QUESTION
        throw new RuntimeException("Internal Error: type="+this.type);
    
intgetData()

                             // CharOp  for CHAR, BACKREFERENCE, CAPTURE, ANCHOR, 
        throw new RuntimeException("Internal Error: type="+this.type);
    
intgetData2()

                            // ModifierOp
        throw new RuntimeException("Internal Error: type="+this.type);
    
java.lang.StringgetString()

                        // STRING
        throw new RuntimeException("Internal Error: type="+this.type);
    
com.sun.org.apache.xerces.internal.impl.xpath.regex.RangeTokengetToken()

                     // RANGE, NRANGE
        throw new RuntimeException("Internal Error: type="+this.type);
    
intsize()

                                // for UNION
        return 0;