public final class AnnList extends ElementList implements Iterable<Ann>
size
Constructor and Description |
---|
AnnList() |
Modifier and Type | Method and Description |
---|---|
void |
add(Ann ann)
Adds a QName/value pair.
|
AnnList |
check(boolean var)
Checks all annotations for parsing errors.
|
boolean |
contains(Ann ann)
Checks if the specified annotation is found in the list.
|
boolean |
contains(Annotation sig)
Checks if the specified signature is found in the list.
|
Ann |
get(Annotation sig)
Returns an annotation with the specified signature.
|
Ann |
get(int index)
Returns the annotation at the specified position.
|
AnnList |
intersect(AnnList al)
Returns the intersection of these annotations and the given ones.
|
Iterator<Ann> |
iterator() |
String |
toString() |
AnnList |
union(AnnList al)
Returns the union of these annotations and the given ones.
|
public void add(Ann ann)
ann
- annotationpublic Ann get(int index)
index
- annotation indexpublic boolean contains(Ann ann)
ann
- annotation to be foundpublic boolean contains(Annotation sig)
sig
- signature to be foundpublic Ann get(Annotation sig)
sig
- signature to be foundnull
public AnnList union(AnnList al)
al
- other annotationsnull
if union is not possiblepublic AnnList intersect(AnnList al)
al
- annotationspublic AnnList check(boolean var) throws QueryException
var
- variable flagQueryException
- query exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.