program
Class RepRegRejector

java.lang.Object
  extended by program.RepRegRejector

public class RepRegRejector
extends java.lang.Object

The repetition region rejector contains all rules that determine if an existing repetiton region accepts other repetition regions or matching pairs. They can be customized by changing nothing but this file.

Author:
Hannes

Constructor Summary
RepRegRejector()
           
 
Method Summary
static boolean accept(RepReg rr, int index)
          Returns if a repetition region (parameter 1) accepts the second index (parameter 2) of another repetition region.
static boolean accept(RepReg rr1, int fI, int sI, int ssL)
          Returns if a repetition region (parameter 1) accepts another repetition region.
static boolean accept(RepReg rr, MatchingPair mp)
          Returns if a repetition region (parameter 1) accepts a matching pair (parameter 2).
static boolean accept(RepReg rr1, RepReg rr2)
          Returns if a repetition region (parameter 1) accepts another repetition region.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepRegRejector

public RepRegRejector()
Method Detail

accept

public static boolean accept(RepReg rr,
                             int index)
Returns if a repetition region (parameter 1) accepts the second index (parameter 2) of another repetition region.

Parameters:
rr - the existing repetition region
index - the other repetition regions second index

accept

public static boolean accept(RepReg rr1,
                             int fI,
                             int sI,
                             int ssL)
Returns if a repetition region (parameter 1) accepts another repetition region.

Parameters:
rr1 - the existing repetition region
fI - the other repetition regions first index
sI - the other repetition regions second index
ssL - the other repetition regions substring length
See Also:
accept(RepReg, RepReg)

accept

public static boolean accept(RepReg rr1,
                             RepReg rr2)
Returns if a repetition region (parameter 1) accepts another repetition region.

Parameters:
rr1 - the existing repetition region
rr2 - the other repetition region
See Also:
accept(RepReg, int, int, int)

accept

public static boolean accept(RepReg rr,
                             MatchingPair mp)
Returns if a repetition region (parameter 1) accepts a matching pair (parameter 2).

Parameters:
rr - the repetition region
mp - the matching pair