public final class ExprList extends ElementList
size
Constructor and Description |
---|
ExprList()
Default constructor.
|
ExprList(Expr element)
Constructor, specifying an initial entry.
|
ExprList(int capacity)
Constructor, specifying an initial array capacity.
|
Modifier and Type | Method and Description |
---|---|
ExprList |
add(Expr... elements)
Adds elements to the array.
|
ExprList |
add(Expr element)
Adds an element to the array.
|
boolean |
contains(Expr element)
Checks if the specified element is found in the list.
|
Expr[] |
finish()
Returns an array with all elements and invalidates the internal array.
|
Expr |
get(int p)
Returns the specified element.
|
void |
set(int index,
Expr element)
Sets an element at the specified index position.
|
public ExprList()
public ExprList(int capacity)
capacity
- array capacitypublic ExprList(Expr element)
element
- array capacitypublic Expr get(int p)
p
- positionpublic ExprList add(Expr element)
element
- element to be addedpublic ExprList add(Expr... elements)
elements
- elements to be addedpublic void set(int index, Expr element)
index
- indexelement
- element to be setpublic boolean contains(Expr element)
element
- element to be foundpublic Expr[] finish()
Copyright © 2005–2015 BaseX Team. All rights reserved.