| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjsdsi.Obj
jsdsi.Tag
jsdsi.ExprTag
jsdsi.SetTag
A tag that specifies a set of allowed values.
Note: Currently empty and singleton sets are allowed, but will be made illegal in a future release.
| Field Summary | 
| Fields inherited from class jsdsi.Tag | 
ALL_TAG, NULL_TAG | 
| Fields inherited from class jsdsi.Obj | 
_obj | 
| Constructor Summary | |
SetTag(java.util.Collection c)
Deprecated. use SetTag(List) | 
|
SetTag(ExprTag[] e)
Creates a new SetTag for a given array of tags. | 
|
SetTag(java.util.List list)
Creates a new SetTag for a given collection of tags. | 
|
| Method Summary | |
 boolean | 
contains(ExprTag tag)
Returns true if this SetTag contains the specified
 tag. | 
 boolean | 
equals(java.lang.Object that)
 | 
 ExprTag[] | 
getElements()
 | 
 int | 
hashCode()
 | 
 int | 
indexOf(ExprTag tag)
Returns the index in this list of the first occurrence of the specified tag, or -1 if this list does not contain this tag.  | 
 Tag | 
intersect(SetTag that)
Returns a new Tag whose elements are the all-pairs intersections of the elements of this and that,
 excluding non-ExprTags such as NULL_TAG and ALL_TAG. | 
 Tag | 
intersect(Tag that)
If that is a SetTag, returns intersect(SetTag). | 
 Sexp | 
toTagSexp()
 | 
| Methods inherited from class jsdsi.Tag | 
implies, toSexp | 
| Methods inherited from class jsdsi.Obj | 
parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public SetTag(ExprTag[] e)
SetTag for a given array of tags.
 Note: Currently empty and singleton sets are allowed, but will be made illegal in a future release.
e - array of ExprTags.
java.lang.IllegalArgumentException - if e contains less
 than 2 elements (IN A FUTURE RELEASE)public SetTag(java.util.List list)
SetTag for a given collection of tags.
 Note: Currently empty and singleton sets are allowed, but will be made illegal in a future release.
list - list of ExprTags.
java.lang.IllegalArgumentException - if list contains
 less than 2 elements (IN A FUTURE RELEASE)public SetTag(java.util.Collection c)
SetTag(List)
SetTag for a given collection of tags.
 Note: Currently empty and singleton sets are allowed, but will be made illegal in a future release.
c - collection of ExprTags.| Method Detail | 
public Tag intersect(Tag that)
that is a SetTag, returns intersect(SetTag).  Else returns a Tag of
 the intersections of that with each Tag
 in this SetTag (if the the result is a single
 element then that Tag itself is returned.)  Otherwise returns
 NULL_TAG.
intersect in class Tagthat - 
SetTag, ExprTag, or
 Tag.NULL_TAG representing the intersection.Tag.intersect(Tag)public Tag intersect(SetTag that)
this and that,
 excluding non-ExprTags such as NULL_TAG and ALL_TAG.
that - 
public boolean equals(java.lang.Object that)
equals in class ObjObject.equals(Object)public int indexOf(ExprTag tag)
tag - tag to search for.
public boolean contains(ExprTag tag)
true if this SetTag contains the specified
 tag.
tag - tag whose presence in this list is to be tested.
true if this list contains the specified
 tag.public int hashCode()
hashCode in class ObjObject.hashCode()public ExprTag[] getElements()
SetTag.public Sexp toTagSexp()
toTagSexp in class TagTag.toTagSexp()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||