|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.meyling.principia.argument.PatternVariables
Set of pattern variables.
| Field Summary | |
private Map |
variables
here is the list |
| Constructor Summary | |
PatternVariables()
Construct an empty set of pattern variables. |
|
PatternVariables(PatternVariables var)
Copy constructor, constructs a new object with the data of another object. |
|
| Method Summary | |
void |
add(PatternVariable variable)
Add an PatternVariable if not already there. |
void |
addAll(PatternVariables newOnes)
Add all these PatternVariables to the set? |
boolean |
contains(PatternVariable variable)
Is variable in the set? |
boolean |
contains(PatternVariables variables)
Are these PatternVariables in the set? |
boolean |
emptyIntersection(PatternVariables variables)
Are all of these PatternVariables not in the set? |
boolean |
equals(PatternVariables variables)
Is this object equal to another one? |
PatternVariable |
get(PatternVariable variable)
Get PatternVariable object with same number from the set. |
Map |
getMap()
Return map of set of pattern variables. |
int |
getSize()
Get number of elements in the set. |
void |
remove(PatternVariable variable)
Remove pattern variable with same number from the set. |
String |
toString()
Get a string representation of this object. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private final Map variables
| Constructor Detail |
public PatternVariables()
public PatternVariables(PatternVariables var)
var - object to copy| Method Detail |
public final void add(PatternVariable variable)
PatternVariable if not already there.variable - variable to add
public final PatternVariable get(PatternVariable variable)
throws IllegalArgumentException
PatternVariable object with same number from the set.variable - the number of this variable determines the
resultIllegalArgumentException - if such a patter variable was
not found in setpublic final boolean contains(PatternVariable variable)
variable in the set?variable - check for this variabletrue iff a variable with such an number is
in the setpublic final boolean contains(PatternVariables variables)
PatternVariables in the set?variables - check for these variablestrue iff all variables have an counterpart
with same number in the setpublic final boolean emptyIntersection(PatternVariables variables)
PatternVariables not in the set?variables - check for these variablestrue iff all variables have no counterpart
with same number in the setpublic final boolean equals(PatternVariables variables)
variables - object to compare withpublic final void addAll(PatternVariables newOnes)
PatternVariables to the set?newOnes - add these variablespublic final int getSize()
public final void remove(PatternVariable variable)
variable - pattern variable that should be
removed from the set.public final Map getMap()
public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||