org.eclipse.ocl.expressions.impl
Class OperationCallExpImpl<C,O>

java.lang.Object
  extended by EObjectImpl
      extended by org.eclipse.ocl.expressions.impl.OCLExpressionImpl<C>
          extended by org.eclipse.ocl.expressions.impl.CallExpImpl<C>
              extended by org.eclipse.ocl.expressions.impl.FeatureCallExpImpl<C>
                  extended by org.eclipse.ocl.expressions.impl.OperationCallExpImpl<C,O>
All Implemented Interfaces:
CallExp<C>, FeatureCallExp<C>, OCLExpression<C>, OperationCallExp<C,O>, ASTNode, CallingASTNode, TypedElement<C>, Visitable

public class OperationCallExpImpl<C,O>
extends FeatureCallExpImpl<C>
implements OperationCallExp<C,O>

An implementation of the model object 'Operation Call Exp'.

The following features are implemented:


Field Summary
protected   argument
          The cached value of the 'Argument' containment reference list
protected static int OPERATION_CODE_EDEFAULT
          The default value of the 'Operation Code' attribute
protected  O referredOperation
          The cached value of the 'Referred Operation' reference
 
Fields inherited from class org.eclipse.ocl.expressions.impl.FeatureCallExpImpl
MARKED_PRE_EDEFAULT, MARKED_PRE_EFLAG
 
Fields inherited from class org.eclipse.ocl.expressions.impl.CallExpImpl
PROPERTY_END_POSITION_EDEFAULT, PROPERTY_START_POSITION_EDEFAULT, propertyEndPosition, propertyStartPosition, source
 
Fields inherited from class org.eclipse.ocl.expressions.impl.OCLExpressionImpl
END_POSITION_EDEFAULT, endPosition, START_POSITION_EDEFAULT, startPosition
 
Constructor Summary
protected OperationCallExpImpl()
           
 
Method Summary
<T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>>
T
accept(U v)
           
 O basicGetReferredOperation()
           
 boolean checkArgumentCount(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean checkArgumentsConform(DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(int featureID)
           
  getArgument()
           
 int getOperationCode()
           
 O getReferredOperation()
           
 void setOperationCode(int newOperationCode)
           
 void setReferredOperation(O newReferredOperation)
           
 
Methods inherited from class org.eclipse.ocl.expressions.impl.FeatureCallExpImpl
isMarkedPre, setMarkedPre, toString
 
Methods inherited from class org.eclipse.ocl.expressions.impl.CallExpImpl
basicSetSource, eBaseStructuralFeatureID, eDerivedStructuralFeatureID, getPropertyEndPosition, getPropertyStartPosition, getSource, setPropertyEndPosition, setPropertyStartPosition, setSource
 
Methods inherited from class org.eclipse.ocl.expressions.impl.OCLExpressionImpl
getEndPosition, getName, getStartPosition, getType, setEndPosition, setName, setStartPosition, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.expressions.OperationCallExp
checkArgumentCount, checkArgumentsConform, setReferredOperation
 
Methods inherited from interface org.eclipse.ocl.expressions.FeatureCallExp
isMarkedPre, setMarkedPre
 
Methods inherited from interface org.eclipse.ocl.expressions.CallExp
getSource, setSource
 
Methods inherited from interface org.eclipse.ocl.utilities.TypedElement
getName, getType, setName, setType
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 
Methods inherited from interface org.eclipse.ocl.utilities.CallingASTNode
getPropertyEndPosition, getPropertyStartPosition, setPropertyEndPosition, setPropertyStartPosition
 
Methods inherited from interface org.eclipse.ocl.utilities.ASTNode
getEndPosition, getStartPosition, setEndPosition, setStartPosition
 

Field Detail

argument

protected  argument
The cached value of the 'Argument' containment reference list.

See Also:
getArgument()

referredOperation

protected O referredOperation
The cached value of the 'Referred Operation' reference.

See Also:
getReferredOperation()

OPERATION_CODE_EDEFAULT

protected static final int OPERATION_CODE_EDEFAULT
The default value of the 'Operation Code' attribute.

See Also:
getOperationCode(), Constant Field Values
Constructor Detail

OperationCallExpImpl

protected OperationCallExpImpl()

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class FeatureCallExpImpl<C>

getArgument

public  getArgument()

Specified by:
getArgument in interface OperationCallExp<C,O>
Returns:
the value of the 'Argument' containment reference list.
See Also:
ExpressionsPackage.getOperationCallExp_Argument()

getReferredOperation

public O getReferredOperation()

Specified by:
getReferredOperation in interface OperationCallExp<C,O>
Returns:
the value of the 'Referred Operation' reference.
See Also:
OperationCallExp.setReferredOperation(Object), ExpressionsPackage.getOperationCallExp_ReferredOperation()

basicGetReferredOperation

public O basicGetReferredOperation()


setReferredOperation

public void setReferredOperation(O newReferredOperation)


getOperationCode

public int getOperationCode()

Specified by:
getOperationCode in interface OperationCallExp<C,O>
Returns:
the value of the 'Operation Code' attribute.
See Also:
OperationCallExp.setOperationCode(int), ExpressionsPackage.getOperationCallExp_OperationCode()

setOperationCode

public void setOperationCode(int newOperationCode)

Specified by:
setOperationCode in interface OperationCallExp<C,O>
Parameters:
newOperationCode - the new value of the 'Operation Code' attribute.
See Also:
OperationCallExp.getOperationCode()

checkArgumentsConform

public boolean checkArgumentsConform(DiagnosticChain diagnostics,
                                     java.util.Map<java.lang.Object,java.lang.Object> context)


checkArgumentCount

public boolean checkArgumentCount(DiagnosticChain diagnostics,
                                  java.util.Map<java.lang.Object,java.lang.Object> context)


eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class CallExpImpl<C>

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Overrides:
eGet in class FeatureCallExpImpl<C>

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Overrides:
eSet in class FeatureCallExpImpl<C>

eUnset

public void eUnset(int featureID)

Overrides:
eUnset in class FeatureCallExpImpl<C>

eIsSet

public boolean eIsSet(int featureID)

Overrides:
eIsSet in class FeatureCallExpImpl<C>

accept

public <T,U extends Visitor<T,?,?,?,?,?,?,?,?,?>> T accept(U v)
Description copied from class: OCLExpressionImpl

Specified by:
accept in interface Visitable
Overrides:
accept in class OCLExpressionImpl<C>

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.