File tree Expand file tree Collapse file tree 4 files changed +18
-18
lines changed
Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 44import java .util .List ;
55
66public class CharacterClassIntersection extends RegExpTerm {
7- private final List <RegExpTerm > intersections ;
7+ private final List <RegExpTerm > elements ;
88
9- public CharacterClassIntersection (SourceLocation loc , List <RegExpTerm > intersections ) {
9+ public CharacterClassIntersection (SourceLocation loc , List <RegExpTerm > elements ) {
1010 super (loc , "CharacterClassIntersection" );
11- this .intersections = intersections ;
11+ this .elements = elements ;
1212 }
1313
1414 @ Override
1515 public void accept (Visitor v ) {
1616 v .visit (this );
1717 }
1818
19- public List <RegExpTerm > getIntersections () {
20- return intersections ;
19+ public List <RegExpTerm > getElements () {
20+ return elements ;
2121 }
2222}
Original file line number Diff line number Diff line change 44import java .util .List ;
55
66public class CharacterClassSubtraction extends RegExpTerm {
7- private final List <RegExpTerm > subtraction ;
7+ private final List <RegExpTerm > elements ;
88
9- public CharacterClassSubtraction (SourceLocation loc , List <RegExpTerm > subtraction ) {
9+ public CharacterClassSubtraction (SourceLocation loc , List <RegExpTerm > elements ) {
1010 super (loc , "CharacterClassSubtraction" );
11- this .subtraction = subtraction ;
11+ this .elements = elements ;
1212 }
1313
1414 @ Override
1515 public void accept (Visitor v ) {
1616 v .visit (this );
1717 }
1818
19- public List <RegExpTerm > getSubtraction () {
20- return subtraction ;
19+ public List <RegExpTerm > getElements () {
20+ return elements ;
2121 }
2222}
Original file line number Diff line number Diff line change 44import java .util .List ;
55
66public class CharacterClassUnion extends RegExpTerm {
7- private final List <RegExpTerm > union ;
7+ private final List <RegExpTerm > elements ;
88
9- public CharacterClassUnion (SourceLocation loc , List <RegExpTerm > union ) {
9+ public CharacterClassUnion (SourceLocation loc , List <RegExpTerm > elements ) {
1010 super (loc , "CharacterClassUnion" );
11- this .union = union ;
11+ this .elements = elements ;
1212 }
1313
1414 @ Override
1515 public void accept (Visitor v ) {
1616 v .visit (this );
1717 }
1818
19- public List <RegExpTerm > getUnion () {
20- return union ;
19+ public List <RegExpTerm > getElements () {
20+ return elements ;
2121 }
2222}
Original file line number Diff line number Diff line change @@ -363,23 +363,23 @@ public void visit(CharacterClassQuotedString nd) {
363363 public void visit (CharacterClassIntersection nd ) {
364364 Label lbl = extractTerm (nd , parent , idx );
365365 int i = 0 ;
366- for (RegExpTerm element : nd .getIntersections ())
366+ for (RegExpTerm element : nd .getElements ())
367367 visit (element , lbl , i ++);
368368 }
369369
370370 @ Override
371371 public void visit (CharacterClassSubtraction nd ) {
372372 Label lbl = extractTerm (nd , parent , idx );
373373 int i = 0 ;
374- for (RegExpTerm element : nd .getSubtraction ())
374+ for (RegExpTerm element : nd .getElements ())
375375 visit (element , lbl , i ++);
376376 }
377377
378378 @ Override
379379 public void visit (CharacterClassUnion nd ) {
380380 Label lbl = extractTerm (nd , parent , idx );
381381 int i = 0 ;
382- for (RegExpTerm element : nd .getUnion ())
382+ for (RegExpTerm element : nd .getElements ())
383383 visit (element , lbl , i ++);
384384 }
385385 }
You can’t perform that action at this time.
0 commit comments