org.eclipse.uml2
Interface Expression

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Notifier, OpaqueExpression, ParameterableElement, TemplateableElement, TypedElement, ValueSpecification

public interface Expression
extends OpaqueExpression

A representation of the model object 'Expression'. 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:
UML2Package.getExpression()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 ValueSpecification createOperand(EClass eClass)
          Creates a ValueSpecification and appends it to the 'Operand' containment reference list
 ValueSpecification getOperand(String unqualifiedName)
          Retrieves the ValueSpecification with the specified name from the 'Operand' containment reference list
 EList getOperands()
          Returns the value of the 'Operand' containment reference list.
 EList getOwnedElements()
           
 String getSymbol()
          Returns the value of the 'Symbol' attribute.
 void setSymbol(String value)
          Sets the value of the 'Symbol' attribute
 
Methods inherited from interface org.eclipse.uml2.OpaqueExpression
getBehavior, getBody, getLanguage, getResult, setBehavior, setBody, setLanguage
 
Methods inherited from interface org.eclipse.uml2.ValueSpecification
booleanValue, integerValue, isComputable, isNull, stringValue, unlimitedValue
 
Methods inherited from interface org.eclipse.uml2.TypedElement
getType, setType
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.uml2.ParameterableElement
getOwner, getOwningParameter, getTemplateParameter, setOwningParameter, setTemplateParameter
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

getSymbol

public String getSymbol()
Returns the value of the 'Symbol' attribute. The default value is "".

If the meaning of the 'Symbol' attribute isn't clear, there really should be more of a description here...

The symbol associated with the node in the expression tree.

Returns:
the value of the 'Symbol' attribute.
See Also:
setSymbol(String), UML2Package.getExpression_Symbol()

setSymbol

public void setSymbol(String value)
Sets the value of the 'Symbol' attribute.

Parameters:
value - the new value of the 'Symbol' attribute.
See Also:
getSymbol()

getOperands

public EList getOperands()
Returns the value of the 'Operand' containment reference list. The list contents are of type ValueSpecification.

If the meaning of the 'Operand' containment reference list isn't clear, there really should be more of a description here...

Specifies a sequence of operands. Subsets Element::ownedElement.

Returns:
the value of the 'Operand' containment reference list.
See Also:
UML2Package.getExpression_Operand()

getOperand

public ValueSpecification getOperand(String unqualifiedName)
Retrieves the ValueSpecification with the specified name from the 'Operand' containment reference list.

Parameters:
unqualifiedName - The unqualified name of the ValueSpecification to retrieve.
Returns:
The ValueSpecification with the specified name, or null.
See Also:
getOperands()

createOperand

public ValueSpecification createOperand(EClass eClass)
Creates a ValueSpecification and appends it to the 'Operand' containment reference list.

Parameters:
eClass - The Ecore class of the ValueSpecification to create.
Returns:
The new ValueSpecification.
See Also:
getOperands()

getOwnedElements

public EList getOwnedElements()

Specified by:
getOwnedElements in interface NamedElement

Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.