de.tuberlin.cs.cis.ocl.eval.instance
Class SequenceInstance
java.lang.Object
|
+--de.tuberlin.cs.cis.ocl.eval.instance.PredefinedInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.CollectionInstance
|
+--de.tuberlin.cs.cis.ocl.eval.instance.SequenceInstance
- All Implemented Interfaces:
- java.lang.Cloneable, Instance, OclCollection, OclSequence
- public class SequenceInstance
- extends CollectionInstance
- implements OclSequence
Represents an instance of the OCL type Sequence.
- Author:
- fchabar
Constructor Summary |
SequenceInstance(Type elemType,
java.util.LinkedList value)
Constructs an instance of the OCL type Sequence via a Java
Sequence . |
Methods inherited from class de.tuberlin.cs.cis.ocl.eval.instance.CollectionInstance |
any, collectionValue, count, equals, excludes, excludesAll, exists, forAll, getElementType, includes, includesAll, isEmpty, isUnique, iterate, notEmpty, one, size, sortedBy, sum, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.tuberlin.cs.cis.ocl.type.reflect.OclCollection |
any, count, excludes, excludesAll, exists, forAll, includes, includesAll, isEmpty, isUnique, notEmpty, one, size, sortedBy, sum |
SequenceInstance
public SequenceInstance(Type elemType,
java.util.LinkedList value)
- Constructs an instance of the OCL type Sequence via a Java
Sequence
.
- Parameters:
elemType
- the OCL runtime type of the elements contained in
the Sequence.
sequenceValue
public static java.util.LinkedList sequenceValue(OclSequence seq)
- Determines the Java
LinkedList
representation of an
OclSequence
value.
- Returns:
- the Java
LinkedList
representation of the
specified OCL Sequence.
count
public OclInteger count(java.lang.Object object)
- Specified by:
count
in interface OclSequence
eq
public OclBoolean eq(OclSequence sequence2)
- Specified by:
eq
in interface OclSequence
union
public OclSequence union(OclSequence sequence2)
- Specified by:
union
in interface OclSequence
append
public OclSequence append(java.lang.Object object)
- Specified by:
append
in interface OclSequence
prepend
public OclSequence prepend(java.lang.Object object)
- Specified by:
prepend
in interface OclSequence
subSequence
public OclSequence subSequence(OclInteger lower,
OclInteger upper)
- Specified by:
subSequence
in interface OclSequence
at
public java.lang.Object at(OclInteger i)
- Specified by:
at
in interface OclSequence
first
public java.lang.Object first()
- Specified by:
first
in interface OclSequence
last
public java.lang.Object last()
- Specified by:
last
in interface OclSequence
including
public OclSequence including(java.lang.Object object)
- Specified by:
including
in interface OclSequence
excluding
public OclSequence excluding(java.lang.Object object)
- Specified by:
excluding
in interface OclSequence
select
public OclSequence select(OclExpression expr)
- Specified by:
select
in interface OclSequence
reject
public OclSequence reject(OclExpression expr)
- Specified by:
reject
in interface OclSequence
collect
public OclSequence collect(OclExpression expr)
- Specified by:
collect
in interface OclSequence
asBag
public OclBag asBag()
- Specified by:
asBag
in interface OclSequence
asSet
public OclSet asSet()
- Specified by:
asSet
in interface OclSequence
clone
public java.lang.Object clone()
- Overrides:
clone
in class CollectionInstance