|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.atl.types.Feature
org.eclipse.m2m.atl.adt.ui.text.atl.types.Operation
public class Operation
The Operation wrapper.
Field Summary |
---|
Fields inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.Feature |
---|
documentation, name |
Constructor Summary | |
---|---|
Operation(org.eclipse.emf.ecore.EOperation operation,
java.lang.String metamodelName)
Creates an Operation from an EOperation . |
|
Operation(java.lang.String name,
OclAnyType contextType,
OclAnyType type)
Creates a new Operation without parameters. |
|
Operation(java.lang.String name,
OclAnyType contextType,
OclAnyType type,
java.util.Map<java.lang.String,OclAnyType> parameters)
Creates a new Operation. |
|
Operation(UnitType unit,
org.eclipse.emf.ecore.EObject declaration,
java.lang.String name,
OclAnyType contextType,
OclAnyType type)
Creates a new Operation without parameters. |
|
Operation(UnitType unit,
org.eclipse.emf.ecore.EObject declaration,
java.lang.String name,
OclAnyType contextType,
OclAnyType type,
java.util.Map<java.lang.String,OclAnyType> parameters)
Creates a new Operation. |
Method Summary | |
---|---|
static Operation |
createFromCalledRule(UnitType unit,
org.eclipse.emf.ecore.EObject rule,
OclAnyType context)
Utility method to initialize an Operation Feature from an ATL model called rule. |
static Operation |
createFromHelper(UnitType unit,
org.eclipse.emf.ecore.EObject helper,
OclAnyType context)
Utility method to initialize an Operation Feature from an ATL model helper. |
static Operation |
createFromLazyRule(UnitType unit,
org.eclipse.emf.ecore.EObject rule,
OclAnyType context)
Utility method to initialize an Operation Feature from an ATL model lazy rule. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDocumentation(OclAnyType context,
java.lang.Object... parameters)
Returns the information related to the operation, or null if not found. |
java.lang.String |
getInformation(OclAnyType context)
Returns a description of the operation for the given context. |
java.util.Map<java.lang.String,OclAnyType> |
getParameters()
|
OclAnyType |
getType(OclAnyType context,
java.lang.Object... parameters)
Returns the operation type. |
int |
hashCode()
|
void |
setDocumentation(java.lang.String documentation)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.m2m.atl.adt.ui.text.atl.types.Feature |
---|
compareTo, createFromAttribute, getContextType, getDeclaration, getDocumentation, getDocumentation, getImagePath, getInformation, getLowerBound, getName, getOppositeName, getType, getUnit, getUpperBound, isContainer, isMany, isOrdered, setImagePath |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Operation(java.lang.String name, OclAnyType contextType, OclAnyType type, java.util.Map<java.lang.String,OclAnyType> parameters)
name
- the operation namecontextType
- type the operation context typetype
- the operation typeparameters
- the operation parameter types mappublic Operation(java.lang.String name, OclAnyType contextType, OclAnyType type)
name
- the operation namecontextType
- the operation context typetype
- the operation typepublic Operation(UnitType unit, org.eclipse.emf.ecore.EObject declaration, java.lang.String name, OclAnyType contextType, OclAnyType type, java.util.Map<java.lang.String,OclAnyType> parameters)
unit
- the atl unit containing the declarationdeclaration
- the element declarationname
- the operation namecontextType
- type the operation context typetype
- the operation typeparameters
- the operation parameter types mappublic Operation(UnitType unit, org.eclipse.emf.ecore.EObject declaration, java.lang.String name, OclAnyType contextType, OclAnyType type)
unit
- the atl unit containing the declarationdeclaration
- the element declarationname
- the operation namecontextType
- the operation context typetype
- the operation typepublic Operation(org.eclipse.emf.ecore.EOperation operation, java.lang.String metamodelName)
EOperation
.
operation
- the EOperation
metamodelName
- the metamodel nameMethod Detail |
---|
public java.util.Map<java.lang.String,OclAnyType> getParameters()
public boolean equals(java.lang.Object obj)
equals
in class Feature
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Feature
Feature.hashCode()
public java.lang.String toString()
toString
in class Feature
Object.toString()
public OclAnyType getType(OclAnyType context, java.lang.Object... parameters)
context
- the context typeparameters
- the operation parameter types
public java.lang.String getDocumentation(OclAnyType context, java.lang.Object... parameters)
context
- the context typeparameters
- the operation parameter types
public void setDocumentation(java.lang.String documentation)
setDocumentation
in class Feature
public java.lang.String getInformation(OclAnyType context)
context
- the current context
public static Operation createFromCalledRule(UnitType unit, org.eclipse.emf.ecore.EObject rule, OclAnyType context)
unit
- the atl unit containing the declarationrule
- the rule model elementcontext
- the operation context type
public static Operation createFromLazyRule(UnitType unit, org.eclipse.emf.ecore.EObject rule, OclAnyType context)
unit
- the atl unit containing the declarationrule
- the rule model elementcontext
- the operation context type
public static Operation createFromHelper(UnitType unit, org.eclipse.emf.ecore.EObject helper, OclAnyType context)
unit
- the atl unit containing the declarationhelper
- the helper model elementcontext
- the operation context type
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |