public static interface Environment.Lookup<PK,C,O,P>
LookupException
s on abnormal failures (usually ambiguous names).Modifier and Type | Method and Description |
---|---|
C |
tryLookupAssociationClassReference(C owner,
java.lang.String name)
Finds a reference in the specified class to the named association class.
|
C |
tryLookupClassifier(java.util.List<java.lang.String> names)
Finds the classifier identified by the specified sequence of names
(a qualified name).
|
O |
tryLookupOperation(C owner,
java.lang.String name,
java.util.List<? extends TypedElement<C>> args)
Find an operation in the specified class.
|
PK |
tryLookupPackage(java.util.List<java.lang.String> names)
Finds the package identified by the specified sequence of names
(a qualified name).
|
P |
tryLookupProperty(C owner,
java.lang.String name)
Finds a property defined or inherited by the specified classifier.
|
C |
tryLookupSignal(C owner,
java.lang.String name,
java.util.List<? extends TypedElement<C>> args)
Finds a received signal in the specified classifier.
|
PK tryLookupPackage(java.util.List<java.lang.String> names) throws LookupException
names
- the qualified namenull
if not foundLookupException
- if lookup fails due to an error such as an ambiguityC tryLookupClassifier(java.util.List<java.lang.String> names) throws LookupException
names
- the qualified namenull
if not foundLookupException
- if lookup fails due to an error such as an ambiguityO tryLookupOperation(C owner, java.lang.String name, java.util.List<? extends TypedElement<C>> args) throws LookupException
owner
- the owner type of the called operation, or null
to find an implicit owner type (in iteration expressions)name
- the name of the called operationargs
- the arguments (expressions or variables) to be matched against
the parameter signature of the operationnull
if not foundLookupException
- if lookup fails due to an error such as an ambiguityP tryLookupProperty(C owner, java.lang.String name) throws LookupException
owner
- the owner of the property that we are looking for, or
null
to find an implicit owner type (in iteration
expressions)name
- the property namenull
if it could not be foundLookupException
- if lookup fails due to an error such as an ambiguityC tryLookupAssociationClassReference(C owner, java.lang.String name) throws LookupException
owner
- the referencing class to search, or
null
to find an implicit owner type (in iteration
expressions)name
- the association class name (with an initial lower case as
per the OCL convention)null
if the specified owner
is not at the
end of an association with this particular nameLookupException
- if lookup fails due to an error such as an ambiguityC tryLookupSignal(C owner, java.lang.String name, java.util.List<? extends TypedElement<C>> args) throws LookupException
owner
- the owner type of the signal receptionname
- the name of the signalargs
- the arguments (expressions or variables) matching the
properties of the signal (parameters of the reception feature)null
if not foundLookupException
- if lookup fails due to an error such as an ambiguity