|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.stevesoft.pat.patInt
This is just an integer that can have infinite value. It is used internally to implement the *, and + parts of regular expressions.
| Constructor Summary | |
patInt()
Initialize to zero. |
|
patInt(int init)
Initialize to the value of init. |
|
patInt(patInt p)
Initialize to the value of p. |
|
| Method Summary | |
void |
dec()
Decrement the value of this by 1. |
boolean |
equals(patInt j)
Test to see if two patterns are equal. |
boolean |
finite()
Tests to see if this represents an infinite quantity. |
void |
inc()
Increment the value of this by 1. |
int |
intValue()
Converts to a patInt to an int. |
boolean |
lessEq(patInt j)
Test to see if this is less than or equal to j. |
patInt |
maxeq(patInt p)
If the argument p has a greater than this, then set this object equal to p. |
patInt |
mineq(patInt p)
If the argument p has a smaller value than this, then set this Object equal to p. |
patInt |
mul(patInt p)
Returns a patInt with value equal to the product of the value of p and this. |
patInt |
pluseq(patInt p)
This would be operator+=(patInt) if I were programming in C++. |
void |
setInf(boolean b)
set this int to infinity. |
java.lang.String |
toString()
Formats the pattern as a String. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public patInt()
public patInt(int init)
public patInt(patInt p)
| Method Detail |
public void setInf(boolean b)
public final void inc()
public final void dec()
public final boolean lessEq(patInt j)
public final boolean equals(patInt j)
public final java.lang.String toString()
public final patInt pluseq(patInt p)
public final patInt mul(patInt p)
public final patInt mineq(patInt p)
public final patInt maxeq(patInt p)
public boolean finite()
public int intValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||