public class Range extends RegExpr
| Constructor and Description |
|---|
Range(char firstAndLast) |
Range(char first,
char last) |
| Modifier and Type | Method and Description |
|---|---|
Range |
and(Range operand) |
boolean |
contains(char c) |
boolean |
contains(Range operand) |
boolean |
equals(Object obj) |
char |
getFirst() |
char |
getLast() |
int |
hashCode() |
static void |
normalizeRanges(List<Range> ranges) |
static void |
remove(List here,
Range operand) |
void |
remove(Range operand,
List<Range> result)
only valid if this.and(operand) is not empty!
|
String |
toString() |
boolean |
touches(Range operand) |
Object |
visit(Action action)
Visit this expressions and its sub-expression and perform
some action.
|
public static final Range ALL
public char getFirst()
public char getLast()
public boolean contains(char c)
public boolean contains(Range operand)
public Object visit(Action action) throws ActionException
RegExprvisit in class RegExprActionExceptionpublic boolean touches(Range operand)
public static void normalizeRanges(List<Range> ranges)
ranges - in-out argument
TODO:
o expensive, the list is modified ...
* states that touch each other are not mergedpublic void remove(Range operand, List<Range> result)
Copyright © 1998–2017 1&1. All rights reserved.