public class KleeneOperator extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
KleeneOperator.Type
Enum containing the defined types of operators.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
KleeneOperator(Integer val)
Create an operator with type RANGE and min and max both set to val.
|
KleeneOperator(Integer min,
Integer max)
Create an operator with type RANGE and the given min and max.
|
KleeneOperator(KleeneOperator.Type type)
Create an operator with the given type, setting the
appropriate min for each (and max when defined).
|
Modifier and Type | Method and Description |
---|---|
Integer |
getMax() |
Integer |
getMin() |
KleeneOperator.Type |
getType() |
void |
setType(KleeneOperator.Type type) |
String |
toString()
The string representation for most operators is the operator symbol itself.
|
protected static final org.apache.log4j.Logger log
public KleeneOperator(KleeneOperator.Type type)
KleeneOperator.Type.RANGE
operators. Use one of
the other range-defining constructors in that case.type
- public KleeneOperator(Integer val)
val
- public KleeneOperator(Integer min, Integer max)
min
- max
- public String toString()
public KleeneOperator.Type getType()
public void setType(KleeneOperator.Type type)