|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ocl.internal.parser.CompatibilityTypeResolver
public class CompatibilityTypeResolver
Constructor Summary | |
---|---|
CompatibilityTypeResolver(Environment env,
TypeResolver oldStyle)
|
Method Summary | |
---|---|
List<EStructuralFeature> |
getAdditionalAttributes(EClassifier owner)
Obtains the additional attributes defined (via OCL) in the specified classifier context. |
List<EOperation> |
getAdditionalOperations(EClassifier owner)
Obtains the additional operations defined (via OCL) in the specified classifier context. |
Resource |
getResource()
Obtains the resource in which the types that I generate are stored for persistence. |
EClassifier |
resolve(EClassifier type)
Resolves the specified type , returning my own persistent
type instance representing the same OCL type. |
EStructuralFeature |
resolveAdditionalAttribute(EClassifier owner,
EStructuralFeature property)
Resolves the specified "additional attribute" defined by the OCL client on the specified owner type. |
EOperation |
resolveAdditionalOperation(EClassifier owner,
EOperation operation)
Resolves the specified "additional operation" defined by the OCL client on the specified owner type. |
CollectionType<EClassifier,EOperation> |
resolveCollectionType(CollectionKind kind,
EClassifier elementType)
Resolves the collection type of the specified kind and
element type, either created anew or previously created. |
MessageType<EClassifier,EOperation,EStructuralFeature> |
resolveOperationMessageType(EOperation operation)
Resolves the type for a message expression referencing the specified operation . |
MessageType<EClassifier,EOperation,EStructuralFeature> |
resolveSignalMessageType(EClassifier signal)
Resolves the type for a message expression referencing the specified signal . |
TupleType<EOperation,EStructuralFeature> |
resolveTupleType(EList<? extends TypedElement<EClassifier>> parts)
Resolves the tuple type consisting of the specified parts ,
in no particular order, either created anew or previously created. |
TypeType<EClassifier,EOperation> |
resolveTypeType(EClassifier type)
Resolves the type for a type expression referencing the specified type . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompatibilityTypeResolver(Environment env, TypeResolver oldStyle)
Method Detail |
---|
public Resource getResource()
TypeResolver
getResource
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
public EClassifier resolve(EClassifier type)
TypeResolver
type
, returning my own persistent
type instance representing the same OCL type.
The type
may have been newly created by the parser and be
a duplicate of a type previously resolved, or it may actually be a
type that was previously resolved. In the latter case, the
type
is returned as is. The null
type is
considered to be resolved (i.e., the result is also null
).
Usually, this method will delegate to one of the
resolveXyzType()
methods defined by this interface.
resolve
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
type
- a type to resolve
type
if it is already resolvedpublic EOperation resolveAdditionalOperation(EClassifier owner, EOperation operation)
TypeResolver
owner
type.
resolveAdditionalOperation
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
owner
- the type on which the additional operation is definedoperation
- the additional operation
public List<EOperation> getAdditionalOperations(EClassifier owner)
TypeResolver
getAdditionalOperations
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
owner
- the context classifier
public EStructuralFeature resolveAdditionalAttribute(EClassifier owner, EStructuralFeature property)
TypeResolver
owner
type.
resolveAdditionalAttribute
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
owner
- the type on which the additional attribute is definedproperty
- the additional attribute
public List<EStructuralFeature> getAdditionalAttributes(EClassifier owner)
TypeResolver
getAdditionalAttributes
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
owner
- the context classifier
public CollectionType<EClassifier,EOperation> resolveCollectionType(CollectionKind kind, EClassifier elementType)
TypeResolver
kind
and
element type, either created anew or previously created.
resolveCollectionType
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
kind
- the kind of collection type to createelementType
- the element type
public MessageType<EClassifier,EOperation,EStructuralFeature> resolveOperationMessageType(EOperation operation)
TypeResolver
operation
.
resolveOperationMessageType
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
operation
- the operation call that the message represents
public MessageType<EClassifier,EOperation,EStructuralFeature> resolveSignalMessageType(EClassifier signal)
TypeResolver
signal
.
resolveSignalMessageType
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
signal
- the signal send that the message represents
public TupleType<EOperation,EStructuralFeature> resolveTupleType(EList<? extends TypedElement<EClassifier>> parts)
TypeResolver
parts
,
in no particular order, either created anew or previously created. The
resulting type is uniquely defined by the names and types of its parts, and
twp tuple types are considered equal if they have the same number of parts
and their parts correspond one-for-one in name and type (order is not
significant).
resolveTupleType
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
parts
- a list of TypedElement
s defining the name and type of
each tuple part. The part names are unique
public TypeType<EClassifier,EOperation> resolveTypeType(EClassifier type)
TypeResolver
type
. This is, effectively, the OCL metatype counterpart
for the specified model type.
resolveTypeType
in interface TypeResolver<EClassifier,EOperation,EStructuralFeature>
type
- a model type
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |