blob: 1678c0c6c87104a3996909a96ba8fbf3b46e7960 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013, 2015 CEA LIST and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* E.D.Willink(CEA LIST) - Initial API and implementation
*******************************************************************************/
package org.eclipse.ocl.examples.codegen.cgmodel.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.Nullable;
import org.eclipse.ocl.examples.codegen.cgmodel.CGAccumulator;
import org.eclipse.ocl.examples.codegen.cgmodel.CGInvalid;
import org.eclipse.ocl.examples.codegen.cgmodel.CGModelPackage;
import org.eclipse.ocl.examples.codegen.cgmodel.util.CGModelVisitor;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>CG Accumulator</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class CGAccumulatorImpl extends CGIteratorImpl implements CGAccumulator
{
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected CGAccumulatorImpl()
{
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass()
{
return CGModelPackage.Literals.CG_ACCUMULATOR;
}
/**
* {@inheritDoc}
* @generated
*/
@Override
public @Nullable <R> R accept(@NonNull CGModelVisitor<R> visitor) {
return visitor.visitCGAccumulator(this);
}
/**
* {@inheritDoc}
* @generated
*/
@Override
public @Nullable CGInvalid getInvalidValue() {
return !nonInvalid ? super.getInvalidValue() : null;
}
/**
* {@inheritDoc}
* @generated
*/
@Override
public boolean isNonInvalid() {
return nonInvalid;
}
/**
* @generated
*/
protected boolean nonInvalid = false;
/**
* {@inheritDoc}
* @generated
*/
@Override
public void setNonInvalid(boolean nonInvalid) {
this.nonInvalid = nonInvalid;
}
} //CGAccumulatorImpl