Package org.basex.query.util.list
Class AnnList
List of annotations.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields inherited from class org.basex.util.list.ObjectList
listFields inherited from class org.basex.util.list.ElementList
factor, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck(boolean variable, boolean visible) Checks all annotations for parsing errors.booleancontains(Annotation sig) Checks if the specified signature is found in the list.get(Annotation sig) Returns an annotation with the specified signature.Returns the intersection of these annotations and the given ones.protected Ann[]newArray(int s) Creates a resized array.voidplan(QueryString qs) Adds the annotations to a query string.Returns the unions of these annotations and the given ones.Methods inherited from class org.basex.util.list.ObjectList
add, add, add, addUnique, contains, equals, equals, finish, get, insert, iterator, next, peek, pop, push, remove, removeAll, removeAll, set, sort, toArray, toString, uniqueMethods inherited from class org.basex.util.list.ElementList
isEmpty, newCapacity, newCapacity, reset, size, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AnnList
public AnnList()
-
-
Method Details
-
contains
Checks if the specified signature is found in the list.- Parameters:
sig- signature to be found- Returns:
- result of check
-
get
Returns an annotation with the specified signature.- Parameters:
sig- signature to be found- Returns:
- annotation or
null
-
intersect
Returns the intersection of these annotations and the given ones.- Parameters:
anns- other annotations- Returns:
- a new instance with all annotations, or
nullif intersection is not possible
-
union
Returns the unions of these annotations and the given ones.- Parameters:
anns- annotations- Returns:
- a new instance with annotations that are present in both lists
-
check
Checks all annotations for parsing errors.- Parameters:
variable- variable flag (triggers different error codes)visible- check visibility annotations- Returns:
- self reference
- Throws:
QueryException- query exception
-
newArray
Description copied from class:ObjectListCreates a resized array.- Specified by:
newArrayin classObjectList<Ann,AnnList> - Parameters:
s- size- Returns:
- array
-
plan
Adds the annotations to a query string.- Parameters:
qs- query string builder
-