Package com.sodius.mdw.metamodel.uml21
Interface Expression
-
- All Superinterfaces:
Comparable<Object>,Element,org.eclipse.emf.ecore.EModelElement,org.eclipse.emf.ecore.EObject,MDWEObject,MDWObject,NamedElement,org.eclipse.emf.common.notify.Notifier,PackageableElement,ParameterableElement,TypedElement,ValueSpecification
- All Known Subinterfaces:
StringExpression
public interface Expression extends ValueSpecification
A representation of the model object 'Expression'. An expression is a structured tree of symbols that denotes a (possibly empty) set of values when evaluated in a context. An expression represents a node in an expression tree, which may be non-terminal or terminal. It defines a symbol, and has a possibly empty sequence of operands which are value specifications.The following features are supported:
- See Also:
UMLPackage.getExpression()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueSpecificationcreateOperand(String name, Type type, org.eclipse.emf.ecore.EClass eClass)Creates a newValueSpecification, with the specified 'Name', and 'Type', and appends it to the 'Operand' containment reference list.ValueSpecificationgetOperand(String name, Type type)Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Operand' containment reference list.ValueSpecificationgetOperand(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Operand' containment reference list.MDWEList<ValueSpecification>getOperands()Returns the value of the 'Operand' containment reference list.StringgetSymbol()Returns the value of the 'Symbol' attribute.booleanisSetSymbol()Returns whether the value of the 'Symbol' attribute is set.voidsetSymbol(String value)Sets the value of the 'Symbol' attribute.voidunsetSymbol()Unsets the value of the 'Symbol' attribute.-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isCompatibleWith, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.TypedElement
getType, setType
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.ValueSpecification
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
-
-
-
-
Method Detail
-
getSymbol
String getSymbol()
Returns the value of the 'Symbol' attribute. The symbol associated with the node in the expression tree.- Returns:
- the value of the 'Symbol' attribute.
- See Also:
isSetSymbol(),unsetSymbol(),setSymbol(String),UMLPackage.getExpression_Symbol()
-
setSymbol
void setSymbol(String value)
Sets the value of the 'Symbol' attribute.- Parameters:
value- the new value of the 'Symbol' attribute.- See Also:
isSetSymbol(),unsetSymbol(),getSymbol()
-
unsetSymbol
void unsetSymbol()
Unsets the value of the 'Symbol' attribute.- See Also:
isSetSymbol(),getSymbol(),setSymbol(String)
-
isSetSymbol
boolean isSetSymbol()
Returns whether the value of the 'Symbol' attribute is set.- Returns:
- whether the value of the 'Symbol' attribute is set.
- See Also:
unsetSymbol(),getSymbol(),setSymbol(String)
-
getOperands
MDWEList<ValueSpecification> getOperands()
Returns the value of the 'Operand' containment reference list. The list contents are of typeValueSpecification. Specifies a sequence of operands.- Returns:
- the value of the 'Operand' containment reference list.
- See Also:
UMLPackage.getExpression_Operand()
-
createOperand
ValueSpecification createOperand(String name, Type type, org.eclipse.emf.ecore.EClass eClass)
Creates a newValueSpecification, with the specified 'Name', and 'Type', and appends it to the 'Operand' containment reference list.- Parameters:
name- The 'Name' for the newValueSpecification, ornull.type- The 'Type' for the newValueSpecification, ornull.eClass- The Ecore class of theValueSpecificationto create.- Returns:
- The new
ValueSpecification. - See Also:
getOperands()
-
getOperand
ValueSpecification getOperand(String name, Type type)
Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Operand' containment reference list.- Parameters:
name- The 'Name' of theValueSpecificationto retrieve, ornull.type- The 'Type' of theValueSpecificationto retrieve, ornull.- Returns:
- The first
ValueSpecificationwith the specified 'Name', and ' Type', ornull. - See Also:
getOperands()
-
getOperand
ValueSpecification getOperand(String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
Retrieves the firstValueSpecificationwith the specified 'Name', and ' Type' from the 'Operand' containment reference list.- Parameters:
name- The 'Name' of theValueSpecificationto retrieve, ornull.type- The 'Type' of theValueSpecificationto retrieve, ornull.ignoreCase- Whether to ignore case inStringcomparisons.eClass- The Ecore class of theValueSpecificationto retrieve, ornull.createOnDemand- Whether to create aValueSpecificationon demand if not found.- Returns:
- The first
ValueSpecificationwith the specified 'Name', and ' Type', ornull. - See Also:
getOperands()
-
-