org.eclipse.ocl.examples.codegen.cgmodel
Interface CGElement

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
CGAccumulator, CGAssertNonNullExp, CGASTCallExp, CGBoolean, CGBoxExp, CGBuiltInIterationCallExp, CGCallable, CGCallExp, CGCastExp, CGCatchExp, CGClass, CGCollectionExp, CGCollectionPart, CGConstant, CGConstantExp, CGConstraint, CGConstructorExp, CGConstructorPart, CGContainmentBody, CGContainmentPart, CGContainmentVisit, CGEcoreClassConstructorExp, CGEcoreDataTypeConstructorExp, CGEcoreOperation, CGEcoreOperationCallExp, CGEcoreOppositePropertyCallExp, CGEcorePropertyCallExp, CGElementId, CGExecutorCompositionProperty, CGExecutorConstructorPart, CGExecutorNavigationProperty, CGExecutorOperation, CGExecutorOperationCallExp, CGExecutorOppositeProperty, CGExecutorOppositePropertyCallExp, CGExecutorProperty, CGExecutorPropertyCallExp, CGExecutorType, CGFinalVariable, CGGuardExp, CGIfExp, CGInteger, CGInvalid, CGIsEqualExp, CGIsInvalidExp, CGIsUndefinedExp, CGIterationCallExp, CGIterator, CGLetExp, CGLibraryIterateCallExp, CGLibraryIterationCallExp, CGLibraryOperation, CGLibraryOperationCallExp, CGLibraryPropertyCallExp, CGLocalVariable, CGModel, CGNamedElement, CGNavigationCallExp, CGNull, CGNumber, CGOperation, CGOperationCallExp, CGOppositePropertyCallExp, CGPackage, CGParameter, CGProperty, CGPropertyCallExp, CGReal, CGSettableVariable, CGString, CGText, CGTextParameter, CGThrowExp, CGTupleExp, CGTuplePart, CGTuplePartCallExp, CGTypedElement, CGTypeExp, CGTypeId, CGUnboxExp, CGUnlimited, CGValuedElement, CGVariable, CGVariableExp
All Known Implementing Classes:
CGAccumulatorImpl, CGAssertNonNullExpImpl, CGASTCallExpImpl, CGBooleanImpl, CGBoxExpImpl, CGBuiltInIterationCallExpImpl, CGCallableImpl, CGCallExpImpl, CGCastExpImpl, CGCatchExpImpl, CGClassImpl, CGCollectionExpImpl, CGCollectionPartImpl, CGConstantExpImpl, CGConstantImpl, CGConstraintImpl, CGConstructorExpImpl, CGConstructorPartImpl, CGContainmentBodyImpl, CGContainmentPartImpl, CGContainmentVisitImpl, CGEcoreClassConstructorExpImpl, CGEcoreDataTypeConstructorExpImpl, CGEcoreOperationCallExpImpl, CGEcoreOperationImpl, CGEcoreOppositePropertyCallExpImpl, CGEcorePropertyCallExpImpl, CGElementIdImpl, CGElementImpl, CGExecutorCompositionPropertyImpl, CGExecutorConstructorPartImpl, CGExecutorNavigationPropertyImpl, CGExecutorOperationCallExpImpl, CGExecutorOperationImpl, CGExecutorOppositePropertyCallExpImpl, CGExecutorOppositePropertyImpl, CGExecutorPropertyCallExpImpl, CGExecutorPropertyImpl, CGExecutorTypeImpl, CGFinalVariableImpl, CGGuardExpImpl, CGIfExpImpl, CGIntegerImpl, CGInvalidImpl, CGIsEqualExpImpl, CGIsInvalidExpImpl, CGIsUndefinedExpImpl, CGIterationCallExpImpl, CGIteratorImpl, CGLetExpImpl, CGLibraryIterateCallExpImpl, CGLibraryIterationCallExpImpl, CGLibraryOperationCallExpImpl, CGLibraryOperationImpl, CGLibraryPropertyCallExpImpl, CGLocalVariableImpl, CGModelImpl, CGNamedElementImpl, CGNavigationCallExpImpl, CGNullImpl, CGNumberImpl, CGOperationCallExpImpl, CGOperationImpl, CGOppositePropertyCallExpImpl, CGPackageImpl, CGParameterImpl, CGPropertyCallExpImpl, CGPropertyImpl, CGRealImpl, CGSettableVariableImpl, CGStringImpl, CGTextImpl, CGTextParameterImpl, CGThrowExpImpl, CGTupleExpImpl, CGTuplePartCallExpImpl, CGTuplePartImpl, CGTypedElementImpl, CGTypeExpImpl, CGTypeIdImpl, CGUnboxExpImpl, CGUnlimitedImpl, CGValuedElementImpl, CGVariableExpImpl, CGVariableImpl

public interface CGElement
extends org.eclipse.emf.ecore.EObject

A representation of the model object 'CG Element'. CGElement is the abstract class from which all classes contribution to a CG tree derive.

See Also:
CGModelPackage.getCGElement()
Generated

Method Summary
<R> R
accept(CGModelVisitor<R> visitor)
          Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.
 java.lang.Iterable<? extends CGElement> getChildren()
          Return the child CGElements.
 CGElement getParent()
          Return the parent node in a CG tree, null at the root.
 AbstractPlace getPlace(java.util.Map<CGElement,AbstractPlace> element2place)
          Returns the place for this element, updating and reusing element2place as required.
 boolean isContext()
          Returns true if this node may have its own symbol name context.
 boolean rewriteAs(CGValuedElement oldValue, CGValuedElement newValue)
          Rewrite the reference to oldValue by newValue.
 
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 org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

accept

@Nullable
<R> R accept(@NonNull
                      CGModelVisitor<R> visitor)
Accept a visit from a visitor and return the result of a call to the derived type-specific visitXXX in the visitor.

Generated

getChildren

@NonNull
java.lang.Iterable<? extends CGElement> getChildren()
Return the child CGElements.

Generated

getParent

@Nullable
CGElement getParent()
Return the parent node in a CG tree, null at the root.

Generated

getPlace

@Nullable
AbstractPlace getPlace(@NonNull
                                java.util.Map<CGElement,AbstractPlace> element2place)
Returns the place for this element, updating and reusing element2place as required. All parent elements have entries in element2place. No child elements have entries in element2place. The global place is accessible as the null element.

Generated

isContext

boolean isContext()
Returns true if this node may have its own symbol name context.

Generated

rewriteAs

boolean rewriteAs(@NonNull
                  CGValuedElement oldValue,
                  @NonNull
                  CGValuedElement newValue)
Rewrite the reference to oldValue by newValue.

Generated