Class Sequence
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable,IModelElement
Realizes a sequence container.
This represents an array.
- Author:
- heiko beck, Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operation(package private) static final DelegatingTypestatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final IDatatypeThis constant represents the common type of all sets.static final OperationFields inherited from class net.ssehub.easy.varModel.model.datatypes.Container
ANY, APPLY, AVG, CLOSURE, COLLECT, COLLECT_NESTED, COPY, COUNT, EXCLUDES, EXCLUDES_ALL, EXISTS, FORALL, IF_DEFINED, INCLUDES, INCLUDES_ALL, IS_ACYCLIC, IS_DEFINED, IS_EMPTY, IS_UNIQUE, ITERATE, MAX, MAX2, MIN, MIN2, NOT_EMPTY, ONE, PRODUCT, REJECT, SELECT, SELECT_BY_KIND, SELECT_BY_TYPE, SIZE, SORTED_BY, SUM, TYPE_OF, TYPE_REJECT, TYPE_SELECT, UNEQUALS, UNEQUALS_ALIAS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSequence()Creates the singleton instance.Sequence(String name, IDatatype type, IModelElement parent) Constructor for the container. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IDatatypeVisitor visitor) Accepts a specialized visitor for creating a textual representation of the identity of this type.voidaccept(IModelVisitor visitor) Accept method for the visitor.static final booleanisSequence(IDatatype type, IDatatype... generics) Returns whethertypeis a squence and the givengenericsmatch.Methods inherited from class net.ssehub.easy.varModel.model.datatypes.Container
getContainedType, getGenericType, getGenericTypeCount, isAssignableFrom, isConstraintContainer, isContainer, isReferencesContainer, isReferencesContainerMethods inherited from class net.ssehub.easy.varModel.model.datatypes.CustomDatatype
getOperation, getOperationCount, getType, getTypeClass, isPrimitive, isPseudoType, isTypeMethods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParentMethods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.model.datatypes.IDatatype
getName, getNameSpace, getQualifiedName, getUniqueName
-
Field Details
-
DTYPE
-
TYPE
This constant represents the common type of all sets. Each specific sequence type is assignable to this type. -
INDEX_ACCESS
-
AT
-
FIRST
-
LAST
-
AS_SET
-
TO_SET
-
AS_SEQUENCE
-
TO_SEQUENCE
-
UNION
-
APPEND
-
PREPEND
-
INSERT_AT
-
INDEX_OF
-
HAS_DUPLICATES
-
EXCLUDING
-
INCLUDING
-
REVERSE
-
SUBSEQUENCE
-
ADD
-
ISSUBSEQUENCE
-
OVERLAPS
-
FLATTEN
-
EQUALS
-
ASSIGNMENT
-
-
Constructor Details
-
Sequence
private Sequence()Creates the singleton instance. -
Sequence
Constructor for the container.- Parameters:
name- Name of the containertype- data type of the container elementsparent- the object, in which this specific one is embedded
-
-
Method Details
-
accept
Accept method for the visitor.- Specified by:
acceptin interfaceIModelElement- Overrides:
acceptin classContainer- Parameters:
visitor- The visitor, which should process this model element.
-
accept
Description copied from interface:IDatatypeVisitableAccepts a specialized visitor for creating a textual representation of the identity of this type.- Specified by:
acceptin interfaceIDatatypeVisitable- Overrides:
acceptin classContainer- Parameters:
visitor- the visitor to accept
-
isSequence
Returns whethertypeis a squence and the givengenericsmatch.- Parameters:
type- the type to check forgenerics- the generics to be considered- Returns:
trueiftypeissequenceOf(generics),falseelse
-