|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.formulae.ExpressionList
An expression list is a list (or set) of expressions
Constructor Summary | |
ExpressionList()
|
Method Summary | |
void |
add(int index,
Object obj)
Add the given element at the specified index in this List |
boolean |
add(Object obj)
Append the given element to the end of this List |
boolean |
addAll(Collection coll)
Append all the elements of the given collection to the end of this List |
boolean |
addAll(int index,
Collection coll)
Insert the elements of the given collection at the given position in this List |
void |
clear()
Clear all elements from this List |
Object |
clone()
Implement the clone method defined by the Expression interface |
abstract boolean |
contains(Object obj)
Determine if the List contain the specified element |
boolean |
containsAll(Collection coll)
Determine if all the elements of the given Collection are in the List |
abstract boolean |
equals(Object obj)
Compare the given object and this List, given that equality implies the Lists contain the same entries in the same order. |
com.klg.jclass.util.formulae.Result |
evaluate()
As a Result Expression, the value of this list is itself |
abstract Object |
get(int index)
Retrieve the element at a given position in this List |
abstract int |
indexOf(Object obj)
Find the position (first occurence) of a given object in the List. |
boolean |
isEmpty()
Determine if the List contains no elements |
abstract Iterator |
iterator()
Get an iterator over the elements in this List |
abstract int |
lastIndexOf(Object o)
Find the position of the last occurence of a given object in the List. |
ListIterator |
listIterator()
Get a ListIterator over the elements of the List |
abstract ListIterator |
listIterator(int index)
Get a ListIterator over the elements of the List beginning at the the given position in the list |
Object |
remove(int index)
Remove the element at the given position from the List |
boolean |
remove(Object o)
Remove the given element from the List (if it exists) |
boolean |
removeAll(Collection coll)
Remove all elements of the given collection from the List (if they exist) |
boolean |
retainAll(Collection c)
Remove all elements in this List which are not in the given Collection. |
Object |
set(int index,
Object obj)
Set the element at a given position in this List |
abstract int |
size()
Return the number of elements in this List |
abstract List |
subList(int startIndex,
int endIndex)
Get a List which is a subsequence of this List (the ordering is the same) |
Object[] |
toArray()
Get an array view of all the elements in this List NOTE: The Iterator's ordering is used |
abstract Object[] |
toArray(Object[] inArray)
Fill a given array with a view of all the elements in this List NOTE: The Iterator's ordering is used |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.List |
hashCode |
Constructor Detail |
public ExpressionList()
Method Detail |
public com.klg.jclass.util.formulae.Result evaluate()
evaluate
in interface Expression
public Object clone() throws CloneNotSupportedException
clone
in interface Expression
clone
in class Object
CloneNotSupportedException
public void add(int index, Object obj)
add
in interface List
index
- The position to insert the given elementobj
- The element to be added to this List
UnsupportedOperationException
- add is not supported by this Listpublic boolean add(Object obj)
add
in interface List
obj
- The element to be added to this List
UnsupportedOperationException
- add is not supported by this Listpublic boolean addAll(Collection coll)
addAll
in interface List
coll
- The collection to be added to this List
UnsupportedOperationException
- addAll is not supported by this Listpublic boolean addAll(int index, Collection coll)
addAll
in interface List
coll
- The collection to be added to this Listindex
- The index in this List at which to insert the elements
UnsupportedOperationException
- addAll is not supported by this Listpublic void clear()
clear
in interface List
UnsupportedOperationException
- clear is not supported by this Listpublic abstract boolean contains(Object obj)
contains
in interface List
obj
- The element to be searched for in this List
public boolean containsAll(Collection coll)
containsAll
in interface List
coll
- The collection whose elements are sought in this List
public abstract boolean equals(Object obj)
equals
in interface List
equals
in class Object
obj
- the object whose equality with this List is tested
public abstract Object get(int index)
get
in interface List
index
- The desired element's position
public abstract int indexOf(Object obj)
indexOf
in interface List
obj
- The object to be found in the List
public boolean isEmpty()
isEmpty
in interface List
public abstract Iterator iterator()
iterator
in interface List
public abstract int lastIndexOf(Object o)
lastIndexOf
in interface List
public ListIterator listIterator()
listIterator
in interface List
public abstract ListIterator listIterator(int index)
listIterator
in interface List
index
- The position at which to initialise the ListIterator
public Object remove(int index)
remove
in interface List
index
- The position of the element to be removed from this List
UnsupportedOperationException
- remove is not supported by this Listpublic boolean remove(Object o)
remove
in interface List
UnsupportedOperationException
- remove is not supported by this Listpublic boolean removeAll(Collection coll)
removeAll
in interface List
coll
- The Collection whose elements are to be removed from the List
UnsupportedOperationException
- removeAll is not supported by this Listpublic boolean retainAll(Collection c)
retainAll
in interface List
UnsupportedOperationException
- retainAll is not supported by this Listpublic Object set(int index, Object obj)
set
in interface List
index
- The desired position of the new elementobj
- The object to be stored at the given location
public abstract int size()
size
in interface List
public abstract List subList(int startIndex, int endIndex)
subList
in interface List
startIndex
- The first element of the sublistendIndex
- The element after the last element of the sublist
public Object[] toArray()
toArray
in interface List
public abstract Object[] toArray(Object[] inArray)
toArray
in interface List
inArray
- The array in which to store the elements
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |