public class OCLFactoryWithHistory extends Object implements OCLFactory
OCLFactorys that records a history of the objects
created by it. This is useful in case any objects that were created ended
up not being used, because an error occurred in parsing, and thus need to
be {@linkplain ObjectUtil#dispose() disposed).| Modifier and Type | Field and Description |
|---|---|
protected OCLFactory |
delegate |
| Constructor and Description |
|---|
OCLFactoryWithHistory(OCLFactory delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
<C,P> AssociationClassCallExp<C,P> |
createAssociationClassCallExp()
Returns a new object of class 'Association Class Call Exp'.
|
<C,O> BagType<C,O> |
createBagType(C elementType)
Returns a new object of class 'Bag Type'.
|
<C> BooleanLiteralExp<C> |
createBooleanLiteralExp()
Returns a new object of class 'Boolean Literal Exp'.
|
<C> CollectionItem<C> |
createCollectionItem()
Returns a new object of class 'Collection Item'.
|
<C> CollectionLiteralExp<C> |
createCollectionLiteralExp()
Returns a new object of class 'Collection Literal Exp'.
|
<C> CollectionRange<C> |
createCollectionRange()
Returns a new object of class 'Collection Range'.
|
<C,O> CollectionType<C,O> |
createCollectionType(C elementType)
Returns a new object of class 'Collection Type'.
|
<C,O> CollectionType<C,O> |
createCollectionType(CollectionKind kind,
C elementType)
Returns a new object of class 'Collection Type'.
|
<C,EL> EnumLiteralExp<C,EL> |
createEnumLiteralExp()
Returns a new object of class 'Enum Literal Exp'.
|
<C> IfExp<C> |
createIfExp()
Returns a new object of class 'If Exp'.
|
<C> IntegerLiteralExp<C> |
createIntegerLiteralExp()
Returns a new object of class 'Integer Literal Exp'.
|
<C> InvalidLiteralExp<C> |
createInvalidLiteralExp()
Returns a new object of class 'Invalid Literal Exp'.
|
<C,PM> IterateExp<C,PM> |
createIterateExp()
Returns a new object of class 'Iterate Exp'.
|
<C,PM> IteratorExp<C,PM> |
createIteratorExp()
Returns a new object of class 'Iterator Exp'.
|
<C,PM> LetExp<C,PM> |
createLetExp()
Returns a new object of class 'Let Exp'.
|
<C,COA,SSA> |
createMessageExp()
Returns a new object of class 'Message Exp'.
|
<C> NullLiteralExp<C> |
createNullLiteralExp()
Returns a new object of class 'Null Literal Exp'.
|
<C,O> OperationCallExp<C,O> |
createOperationCallExp()
Returns a new object of class 'Operation Call Exp'.
|
<C,O,P> MessageType<C,O,P> |
createOperationMessageType(O operation)
Creates the type for the messages representing invocation of the
specified operation.
|
<C,O> OrderedSetType<C,O> |
createOrderedSetType(C elementType)
Returns a new object of class 'Ordered Set Type'.
|
<C,P> PropertyCallExp<C,P> |
createPropertyCallExp()
Returns a new object of class 'Property Call Exp'.
|
<C> RealLiteralExp<C> |
createRealLiteralExp()
Returns a new object of class 'Real Literal Exp'.
|
<C,O> SequenceType<C,O> |
createSequenceType(C elementType)
Returns a new object of class 'Sequence Type'.
|
<C,O> SetType<C,O> |
createSetType(C elementType)
Returns a new object of class 'Set Type'.
|
<C,O,P> MessageType<C,O,P> |
createSignalMessageType(C signal)
Creates the type for the messages representing invocation of the
specified signal.
|
<C,S> StateExp<C,S> |
createStateExp()
Returns a new object of class 'State Exp'.
|
<C> StringLiteralExp<C> |
createStringLiteralExp()
Returns a new object of class 'String Literal Exp'.
|
<C,P> TupleLiteralExp<C,P> |
createTupleLiteralExp()
Returns a new object of class 'Tuple Literal Exp'.
|
<C,P> TupleLiteralPart<C,P> |
createTupleLiteralPart()
Returns a new object of class 'Tuple Literal Part'.
|
<C,O,P> TupleType<O,P> |
createTupleType(List<? extends TypedElement<C>> parts)
Creates a tuple type based on tthe specified part descriptions.
|
<C> TypeExp<C> |
createTypeExp()
Returns a new object of class 'Type Exp'.
|
<C,O> TypeType<C,O> |
createTypeType(C type)
Returns a new object of class 'Type Type'.
|
<C> UnlimitedNaturalLiteralExp<C> |
createUnlimitedNaturalLiteralExp()
Returns a new object of class 'Unlimited Natural Literal Exp'.
|
<C> UnspecifiedValueExp<C> |
createUnspecifiedValueExp()
Returns a new object of class 'Unspecified Value Exp'.
|
<C,PM> Variable<C,PM> |
createVariable()
Returns a new object of class 'Variable'.
|
<C,PM> VariableExp<C,PM> |
createVariableExp()
Returns a new object of class 'Variable Exp'.
|
protected <T> T |
record(T object) |
protected final OCLFactory delegate
public OCLFactoryWithHistory(OCLFactory delegate)
public void clear()
protected <T> T record(T object)
public <C,P> AssociationClassCallExp<C,P> createAssociationClassCallExp()
OCLFactorycreateAssociationClassCallExp in interface OCLFactorypublic <C,O> BagType<C,O> createBagType(C elementType)
OCLFactorycreateBagType in interface OCLFactorypublic <C> BooleanLiteralExp<C> createBooleanLiteralExp()
OCLFactorycreateBooleanLiteralExp in interface OCLFactorypublic <C> CollectionItem<C> createCollectionItem()
OCLFactorycreateCollectionItem in interface OCLFactorypublic <C> CollectionLiteralExp<C> createCollectionLiteralExp()
OCLFactorycreateCollectionLiteralExp in interface OCLFactorypublic <C> CollectionRange<C> createCollectionRange()
OCLFactorycreateCollectionRange in interface OCLFactorypublic <C,O> CollectionType<C,O> createCollectionType(C elementType)
OCLFactorycreateCollectionType in interface OCLFactorypublic <C,O> CollectionType<C,O> createCollectionType(CollectionKind kind, C elementType)
OCLFactorycreateCollectionType in interface OCLFactorypublic <C,EL> EnumLiteralExp<C,EL> createEnumLiteralExp()
OCLFactorycreateEnumLiteralExp in interface OCLFactorypublic <C> IfExp<C> createIfExp()
OCLFactorycreateIfExp in interface OCLFactorypublic <C> IntegerLiteralExp<C> createIntegerLiteralExp()
OCLFactorycreateIntegerLiteralExp in interface OCLFactorypublic <C> InvalidLiteralExp<C> createInvalidLiteralExp()
OCLFactorycreateInvalidLiteralExp in interface OCLFactorypublic <C,PM> IterateExp<C,PM> createIterateExp()
OCLFactorycreateIterateExp in interface OCLFactorypublic <C,PM> IteratorExp<C,PM> createIteratorExp()
OCLFactorycreateIteratorExp in interface OCLFactorypublic <C,PM> LetExp<C,PM> createLetExp()
OCLFactorycreateLetExp in interface OCLFactorypublic <C,COA,SSA> MessageExp<C,COA,SSA> createMessageExp()
OCLFactorycreateMessageExp in interface OCLFactorypublic <C> NullLiteralExp<C> createNullLiteralExp()
OCLFactorycreateNullLiteralExp in interface OCLFactorypublic <C,O> OperationCallExp<C,O> createOperationCallExp()
OCLFactorycreateOperationCallExp in interface OCLFactorypublic <C,O,P> MessageType<C,O,P> createOperationMessageType(O operation)
OCLFactorycreateOperationMessageType in interface OCLFactoryoperation - a called operationpublic <C,O> OrderedSetType<C,O> createOrderedSetType(C elementType)
OCLFactorycreateOrderedSetType in interface OCLFactorypublic <C,P> PropertyCallExp<C,P> createPropertyCallExp()
OCLFactorycreatePropertyCallExp in interface OCLFactorypublic <C> RealLiteralExp<C> createRealLiteralExp()
OCLFactorycreateRealLiteralExp in interface OCLFactorypublic <C,O> SequenceType<C,O> createSequenceType(C elementType)
OCLFactorycreateSequenceType in interface OCLFactorypublic <C,O> SetType<C,O> createSetType(C elementType)
OCLFactorycreateSetType in interface OCLFactorypublic <C,O,P> MessageType<C,O,P> createSignalMessageType(C signal)
OCLFactorycreateSignalMessageType in interface OCLFactorysignal - either a sent signalpublic <C,S> StateExp<C,S> createStateExp()
OCLFactorycreateStateExp in interface OCLFactorypublic <C> StringLiteralExp<C> createStringLiteralExp()
OCLFactorycreateStringLiteralExp in interface OCLFactorypublic <C,P> TupleLiteralExp<C,P> createTupleLiteralExp()
OCLFactorycreateTupleLiteralExp in interface OCLFactorypublic <C,P> TupleLiteralPart<C,P> createTupleLiteralPart()
OCLFactorycreateTupleLiteralPart in interface OCLFactorypublic <C,O,P> TupleType<O,P> createTupleType(List<? extends TypedElement<C>> parts)
OCLFactorycreateTupleType in interface OCLFactoryparts - a list of TypedElements describing the tuple partspublic <C> TypeExp<C> createTypeExp()
OCLFactorycreateTypeExp in interface OCLFactorypublic <C,O> TypeType<C,O> createTypeType(C type)
OCLFactorycreateTypeType in interface OCLFactorypublic <C> UnlimitedNaturalLiteralExp<C> createUnlimitedNaturalLiteralExp()
OCLFactorycreateUnlimitedNaturalLiteralExp in interface OCLFactorypublic <C> UnspecifiedValueExp<C> createUnspecifiedValueExp()
OCLFactorycreateUnspecifiedValueExp in interface OCLFactorypublic <C,PM> Variable<C,PM> createVariable()
OCLFactorycreateVariable in interface OCLFactorypublic <C,PM> VariableExp<C,PM> createVariableExp()
OCLFactorycreateVariableExp in interface OCLFactoryCopyright © 2015 Open eHealth Foundation. All rights reserved.