/** return this | a in a new set */ public BitSet or(BitSet a) { BitSet s = (BitSet)this.clone(); s.orInPlace(a); return s; }
public void combineWith(Lookahead q) { if (cycle == null) { // track at least one cycle cycle = q.cycle; } if (q.containsEpsilon()) { hasEpsilon = true; } // combine epsilon depths if (epsilonDepth != null) { if (q.epsilonDepth != null) { epsilonDepth.orInPlace(q.epsilonDepth); } } else if (q.epsilonDepth != null) { epsilonDepth = (BitSet)q.epsilonDepth.clone(); } fset.orInPlace(q.fset); }
public final BitSet charSet() throws RecognitionException, TokenStreamException { BitSet b ; b = null; BitSet tmpSet = null; b=setBlockElement(); { _loop34: do { if ((LA(1)==OR)) { match(OR); tmpSet=setBlockElement(); if ( inputState.guessing==0 ) { b.orInPlace(tmpSet); } } else { break _loop34; } } while (true); } return b ; }