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 java.lang.String |
copyright
|
Methods inherited from interface org.eclipse.uml2.NamedElement |
allNamespaces, createDependency, createNameExpression, createNameExpression, getClientDependencies, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership |
Methods inherited from interface org.eclipse.uml2.Element |
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getValue, hasKeyword, hasValue, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, validateHasOwner, validateNotOwnSelf |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
copyright
public static final java.lang.String copyright
-
- See Also:
- Constant Field Values
getSymbol
public java.lang.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(java.lang.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(java.lang.String name)
- Retrieves the
ValueSpecification
with the specified 'Name' from the 'Operand' containment reference list.
- Parameters:
name
- The '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()