public void add(Label a) { if ( isAtom() ) { labelSet = IntervalSet.of(label); label=SET; if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } if ( isSet() ) { if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } throw new IllegalStateException("can't add element to Label of type "+label); }
d.dfa.recursiveAltSet.add(alt); // indicate that this alt is recursive if ( d.dfa.recursiveAltSet.size()>1 ) {
public void add(Label a) { if ( isAtom() ) { labelSet = IntervalSet.of(label); label=SET; if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } if ( isSet() ) { if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } throw new IllegalStateException("can't add element to Label of type "+label); }
d.dfa.recursiveAltSet.add(alt); // indicate that this alt is recursive if ( d.dfa.recursiveAltSet.size()>1 ) {
public void add(Label a) { if ( isAtom() ) { labelSet = IntervalSet.of(label); label=SET; if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } if ( isSet() ) { if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } throw new IllegalStateException("can't add element to Label of type "+label); }
d.dfa.recursiveAltSet.add(alt); // indicate that this alt is recursive if ( d.dfa.recursiveAltSet.size()>1 ) {
public void add(Label a) { if ( isAtom() ) { labelSet = IntervalSet.of(label); label=SET; if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } if ( isSet() ) { if ( a.isAtom() ) { labelSet.add(a.getAtom()); } else if ( a.isSet() ) { labelSet.addAll(a.getSet()); } else { throw new IllegalStateException("can't add element to Label of type "+label); } return; } throw new IllegalStateException("can't add element to Label of type "+label); }
d.dfa.recursiveAltSet.add(alt); // indicate that this alt is recursive if ( d.dfa.recursiveAltSet.size()>1 ) {