envgen.spec
Class RENode
java.lang.Object
|
+--envgen.spec.SpecNode
|
+--envgen.spec.RENode
- public class RENode
- extends SpecNode
Data structure to hold a regular expression.
|
Field Summary |
(package private) char |
kind
Kinds of nodes:
'|' - choice,
'S' - sequence,
'^ num' - times,
'^ {num0, num1}' - range ,
'*' - Kleene Closure - zero or more,
'+' - one or more,
'?' - zero or one,
'P' - proposition. |
(package private) java.util.Vector |
operands
Operands for choice and sequence. |
(package private) int |
val1
End of range value. |
|
Constructor Summary |
RENode(char k,
int v0,
int v1,
java.util.Vector op)
|
RENode(char k,
int v,
java.util.Vector op)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
kind
char kind
- Kinds of nodes:
'|' - choice,
'S' - sequence,
'^ num' - times,
'^ {num0, num1}' - range ,
'*' - Kleene Closure - zero or more,
'+' - one or more,
'?' - zero or one,
'P' - proposition.
val1
int val1
- End of range value.
operands
java.util.Vector operands
- Operands for choice and sequence.
RENode
public RENode(char k,
int v,
java.util.Vector op)
RENode
public RENode(char k,
int v0,
int v1,
java.util.Vector op)
orCombine
public void orCombine()
seqCombine
public void seqCombine()
getKind
public char getKind()
getVal
public int getVal()
- Description copied from class:
SpecNode
- Returns the index of the proposition in the universe
of propositions.
- Overrides:
getVal in class SpecNode
setVal
public void setVal(int i)
getSecondVal
public int getSecondVal()
setSecondVal
public void setSecondVal(int i)
getOperands
public java.util.Vector getOperands()
addOperand
public void addOperand(RENode spec)
equals
public boolean equals(java.lang.Object node)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object