|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.models.JMLValueSequenceSpecs
Specical behavior for JMLValueSequence not shared by JMLObjectSequence.
JMLValueType,
JMLValueBag| Constructor Summary | |
JMLValueSequenceSpecs()
|
|
| Method Summary | |
abstract Object |
clone()
Return a clone of this object, making clones of any contained objects in the sequence. |
int |
count(Object elem)
Tell many times the argument occurs ".equals" to one of the values in the bag. |
abstract int |
count(JMLType elem)
Tell many times the argument occurs ".equals" to one of the values in this sequence. |
abstract JMLType |
first()
Return a clone of the first element in this sequence. |
boolean |
has(Object elem)
Is the argument ".equals" to one of the values in this sequence. |
abstract boolean |
has(JMLType elem)
Return the representative at the given index. |
abstract JMLValueSequence |
insertAfterIndex(int afterThisOne,
JMLType item)
Return a sequence like this, but with a clone ofitem put immediately after the given index. |
abstract JMLValueSequence |
insertBack(JMLType item)
Return a sequence like this, but with a clone of the given item put an the end. |
abstract JMLValueSequence |
insertBeforeIndex(int beforeThisOne,
JMLType item)
Return a sequence like this, but with a clone of item put immediately before the given index. |
abstract JMLValueSequence |
insertFront(JMLType item)
Return a sequence like this, but with the given item put an the front. |
abstract int |
int_length()
This sequence's length. |
abstract JMLType |
itemAt(int i)
Return a clone of the element at the given zero-based index. |
abstract JMLType |
last()
Return a clone of the last element in this sequence. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jmlspecs.models.JMLValueType |
equals |
| Methods inherited from interface org.jmlspecs.models.JMLType |
hashCode |
| Constructor Detail |
public JMLValueSequenceSpecs()
| Method Detail |
public abstract boolean has(JMLType elem)
Is the argument ".equals" to one of the values in this sequence.,
has(Object),
#int_count(JMLType)public boolean has(Object elem)
has(JMLType),
count(Object)public abstract int count(JMLType elem)
count(Object),
has(JMLType)public int count(Object elem)
count(JMLType),
has(Object)public abstract int int_length()
public abstract JMLType itemAt(int i)
throws JMLSequenceException
i - the zero-based index into the sequence.
JMLSequenceException - if the index i is out of range.
public abstract JMLType first()
throws JMLSequenceException
JMLSequenceException - if the sequence is empty.last()
public abstract JMLType last()
throws JMLSequenceException
JMLSequenceException - if the sequence is empty.first()public abstract Object clone()
clone in interface JMLValueTypeclone in class Object
public abstract JMLValueSequence insertAfterIndex(int afterThisOne,
JMLType item)
throws JMLSequenceException
afterThisOne - a zero-based index into the sequence, or -1.item - the item to put after index afterThisOne
JMLSequenceException - if the index is out of range.insertBeforeIndex(int, org.jmlspecs.models.JMLType),
insertBack(org.jmlspecs.models.JMLType),
insertFront(org.jmlspecs.models.JMLType)
public abstract JMLValueSequence insertBeforeIndex(int beforeThisOne,
JMLType item)
throws JMLSequenceException
beforeThisOne - a zero-based index into the sequence,
or the length of this.item - the item to put before index beforeThisOne
JMLSequenceException - if the index is out of range.insertAfterIndex(int, org.jmlspecs.models.JMLType),
insertBack(org.jmlspecs.models.JMLType),
insertFront(org.jmlspecs.models.JMLType)public abstract JMLValueSequence insertBack(JMLType item)
item - the item to put at the end of the result.
insertAfterIndex(int, org.jmlspecs.models.JMLType),
insertBeforeIndex(int, org.jmlspecs.models.JMLType),
insertFront(org.jmlspecs.models.JMLType)public abstract JMLValueSequence insertFront(JMLType item)
item - the item to put at the front of the result.
insertAfterIndex(int, org.jmlspecs.models.JMLType),
insertBeforeIndex(int, org.jmlspecs.models.JMLType),
insertBack(org.jmlspecs.models.JMLType)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||