|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.parser.OCLFactoryWithHistory
public class OCLFactoryWithHistory
A wrapper for OCLFactory
s 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).
Field Summary | |
---|---|
protected OCLFactory |
delegate
|
Constructor Summary | |
---|---|
OCLFactoryWithHistory(OCLFactory delegate)
|
Method Summary | ||
---|---|---|
void |
clear()
|
|
|
createAssociationClassCallExp()
Returns a new object of class 'Association Class Call Exp'. |
|
|
createBagType(C elementType)
Returns a new object of class 'Bag Type'. |
|
|
createBooleanLiteralExp()
Returns a new object of class 'Boolean Literal Exp'. |
|
|
createCollectionItem()
Returns a new object of class 'Collection Item'. |
|
|
createCollectionLiteralExp()
Returns a new object of class 'Collection Literal Exp'. |
|
|
createCollectionRange()
Returns a new object of class 'Collection Range'. |
|
|
createCollectionType(C elementType)
Returns a new object of class 'Collection Type'. |
|
|
createCollectionType(CollectionKind kind,
C elementType)
Returns a new object of class 'Collection Type'. |
|
|
createEnumLiteralExp()
Returns a new object of class 'Enum Literal Exp'. |
|
|
createIfExp()
Returns a new object of class 'If Exp'. |
|
|
createIntegerLiteralExp()
Returns a new object of class 'Integer Literal Exp'. |
|
|
createInvalidLiteralExp()
Returns a new object of class 'Invalid Literal Exp'. |
|
|
createIterateExp()
Returns a new object of class 'Iterate Exp'. |
|
|
createIteratorExp()
Returns a new object of class 'Iterator Exp'. |
|
|
createLetExp()
Returns a new object of class 'Let Exp'. |
|
|
createMessageExp()
Returns a new object of class 'Message Exp'. |
|
|
createNullLiteralExp()
Returns a new object of class 'Null Literal Exp'. |
|
|
createOperationCallExp()
Returns a new object of class 'Operation Call Exp'. |
|
|
createOperationMessageType(O operation)
Creates the type for the messages representing invocation of the specified operation. |
|
|
createOrderedSetType(C elementType)
Returns a new object of class 'Ordered Set Type'. |
|
|
createPropertyCallExp()
Returns a new object of class 'Property Call Exp'. |
|
|
createRealLiteralExp()
Returns a new object of class 'Real Literal Exp'. |
|
|
createSequenceType(C elementType)
Returns a new object of class 'Sequence Type'. |
|
|
createSetType(C elementType)
Returns a new object of class 'Set Type'. |
|
|
createSignalMessageType(C signal)
Creates the type for the messages representing invocation of the specified signal. |
|
|
createStateExp()
Returns a new object of class 'State Exp'. |
|
|
createStringLiteralExp()
Returns a new object of class 'String Literal Exp'. |
|
|
createTupleLiteralExp()
Returns a new object of class 'Tuple Literal Exp'. |
|
|
createTupleLiteralPart()
Returns a new object of class 'Tuple Literal Part'. |
|
|
createTupleType(java.util.List<? extends TypedElement<C>> parts)
Creates a tuple type based on tthe specified part descriptions. |
|
|
createTypeExp()
Returns a new object of class 'Type Exp'. |
|
|
createTypeType(C type)
Returns a new object of class 'Type Type'. |
|
|
createUnlimitedNaturalLiteralExp()
Returns a new object of class 'Unlimited Natural Literal Exp'. |
|
|
createUnspecifiedValueExp()
Returns a new object of class 'Unspecified Value Exp'. |
|
|
createVariable()
Returns a new object of class 'Variable'. |
|
|
createVariableExp()
Returns a new object of class 'Variable Exp'. |
|
protected
|
record(T object)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final OCLFactory delegate
Constructor Detail |
---|
public OCLFactoryWithHistory(OCLFactory delegate)
Method Detail |
---|
public void clear()
protected <T> T record(T object)
public <C,P> AssociationClassCallExp<C,P> createAssociationClassCallExp()
OCLFactory
createAssociationClassCallExp
in interface OCLFactory
public <C,O> BagType<C,O> createBagType(C elementType)
OCLFactory
createBagType
in interface OCLFactory
public <C> BooleanLiteralExp<C> createBooleanLiteralExp()
OCLFactory
createBooleanLiteralExp
in interface OCLFactory
public <C> CollectionItem<C> createCollectionItem()
OCLFactory
createCollectionItem
in interface OCLFactory
public <C> CollectionLiteralExp<C> createCollectionLiteralExp()
OCLFactory
createCollectionLiteralExp
in interface OCLFactory
public <C> CollectionRange<C> createCollectionRange()
OCLFactory
createCollectionRange
in interface OCLFactory
public <C,O> CollectionType<C,O> createCollectionType(C elementType)
OCLFactory
createCollectionType
in interface OCLFactory
public <C,O> CollectionType<C,O> createCollectionType(CollectionKind kind, C elementType)
OCLFactory
createCollectionType
in interface OCLFactory
public <C,EL> EnumLiteralExp<C,EL> createEnumLiteralExp()
OCLFactory
createEnumLiteralExp
in interface OCLFactory
public <C> IfExp<C> createIfExp()
OCLFactory
createIfExp
in interface OCLFactory
public <C> IntegerLiteralExp<C> createIntegerLiteralExp()
OCLFactory
createIntegerLiteralExp
in interface OCLFactory
public <C> InvalidLiteralExp<C> createInvalidLiteralExp()
OCLFactory
createInvalidLiteralExp
in interface OCLFactory
public <C,PM> IterateExp<C,PM> createIterateExp()
OCLFactory
createIterateExp
in interface OCLFactory
public <C,PM> IteratorExp<C,PM> createIteratorExp()
OCLFactory
createIteratorExp
in interface OCLFactory
public <C,PM> LetExp<C,PM> createLetExp()
OCLFactory
createLetExp
in interface OCLFactory
public <C,COA,SSA> MessageExp<C,COA,SSA> createMessageExp()
OCLFactory
createMessageExp
in interface OCLFactory
public <C> NullLiteralExp<C> createNullLiteralExp()
OCLFactory
createNullLiteralExp
in interface OCLFactory
public <C,O> OperationCallExp<C,O> createOperationCallExp()
OCLFactory
createOperationCallExp
in interface OCLFactory
public <C,O,P> MessageType<C,O,P> createOperationMessageType(O operation)
OCLFactory
createOperationMessageType
in interface OCLFactory
operation
- a called operation
public <C,O> OrderedSetType<C,O> createOrderedSetType(C elementType)
OCLFactory
createOrderedSetType
in interface OCLFactory
public <C,P> PropertyCallExp<C,P> createPropertyCallExp()
OCLFactory
createPropertyCallExp
in interface OCLFactory
public <C> RealLiteralExp<C> createRealLiteralExp()
OCLFactory
createRealLiteralExp
in interface OCLFactory
public <C,O> SequenceType<C,O> createSequenceType(C elementType)
OCLFactory
createSequenceType
in interface OCLFactory
public <C,O> SetType<C,O> createSetType(C elementType)
OCLFactory
createSetType
in interface OCLFactory
public <C,O,P> MessageType<C,O,P> createSignalMessageType(C signal)
OCLFactory
createSignalMessageType
in interface OCLFactory
signal
- either a sent signal
public <C,S> StateExp<C,S> createStateExp()
OCLFactory
createStateExp
in interface OCLFactory
public <C> StringLiteralExp<C> createStringLiteralExp()
OCLFactory
createStringLiteralExp
in interface OCLFactory
public <C,P> TupleLiteralExp<C,P> createTupleLiteralExp()
OCLFactory
createTupleLiteralExp
in interface OCLFactory
public <C,P> TupleLiteralPart<C,P> createTupleLiteralPart()
OCLFactory
createTupleLiteralPart
in interface OCLFactory
public <C,O,P> TupleType<O,P> createTupleType(java.util.List<? extends TypedElement<C>> parts)
OCLFactory
createTupleType
in interface OCLFactory
parts
- a list of TypedElement
s describing the tuple parts
public <C> TypeExp<C> createTypeExp()
OCLFactory
createTypeExp
in interface OCLFactory
public <C,O> TypeType<C,O> createTypeType(C type)
OCLFactory
createTypeType
in interface OCLFactory
public <C> UnlimitedNaturalLiteralExp<C> createUnlimitedNaturalLiteralExp()
OCLFactory
createUnlimitedNaturalLiteralExp
in interface OCLFactory
public <C> UnspecifiedValueExp<C> createUnspecifiedValueExp()
OCLFactory
createUnspecifiedValueExp
in interface OCLFactory
public <C,PM> Variable<C,PM> createVariable()
OCLFactory
createVariable
in interface OCLFactory
public <C,PM> VariableExp<C,PM> createVariableExp()
OCLFactory
createVariableExp
in interface OCLFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |