public interface OperationOwner
Modifier and Type | Method and Description |
---|---|
Operation |
createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<Type> parameterTypes)
Creates a new void
Operation (having no return result) as an
owned operation of this classifier. |
Operation |
createOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<Type> parameterTypes,
Type returnType)
Creates a new
Operation as an owned operation of this classifier. |
Operation |
getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<Type> parameterTypes)
Finds the first owned operation that matches all or any of the given
name , parameterNames , and parameterTypes . |
Operation |
getOwnedOperation(java.lang.String name,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<Type> parameterTypes,
boolean ignoreCase,
boolean createOnDemand)
Finds the first owned operation that matches all or any of the given
name (optionally case-insensitive), parameterNames
(optionally case-insensitive), and parameterTypes . |
org.eclipse.emf.common.util.EList<Operation> |
getOwnedOperations()
Obtains the operations owned by this classifier.
|
org.eclipse.emf.common.util.EList<Operation> getOwnedOperations()
Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes)
Operation
(having no return result) as an
owned operation of this classifier.name
- the name of the new operation (may be null
)parameterNames
- the names of the operation's IN
parameters (may be null
if no parameters are
needed)parameterTypes
- the types of the operation's IN
parameters (may be null
if no parameters are
needed)createOwnedOperation(String, EList, EList, Type)
,
getOwnedOperation(String, EList, EList)
Operation createOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes, Type returnType)
Operation
as an owned operation of this classifier.name
- the name of the new operation (may be null
)parameterNames
- the names of the operation's IN
parameters (may be null
if no parameters are
needed)parameterTypes
- the types of the operation's IN
parameters (may be null
if no parameters are
needed)returnType
- the type of the operation (which is the type of its sole
return result)createOwnedOperation(String, EList, EList)
,
getOwnedOperation(String, EList, EList)
Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes)
name
, parameterNames
, and parameterTypes
.name
- the operation name to match, or null
to match any
operation nameparameterNames
- the parameter names to match, or null
to match any
parameter namesparameterTypes
- the parameter types to match, or null
to match any
signaturenull
if not foundgetOwnedOperation(String, EList, EList, boolean, boolean)
Operation getOwnedOperation(java.lang.String name, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<Type> parameterTypes, boolean ignoreCase, boolean createOnDemand)
name
(optionally case-insensitive), parameterNames
(optionally case-insensitive), and parameterTypes
.name
- the operation name to match, or null
to match any
operation nameparameterNames
- the parameter names to match, or null
to match any
parameter namesparameterTypes
- the parameter types to match, or null
to match any
signatureignoreCase
- whether matching of operation and parameter names is
case-insensitivecreateOnDemand
- whether to create the owned operation and return it if an
existing match is not foundnull
if not found and
createOnDemand
is false
getOwnedOperation(String, EList, EList)