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

All Superinterfaces:
CGElement, CGNamedElement, CGTypedElement, CGValuedElement, org.eclipse.emf.ecore.EObject, Nameable, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
CGBoolean, CGElementId, CGInteger, CGInvalid, CGNull, CGNumber, CGReal, CGString, CGText, CGTypeId, CGUnlimited
All Known Implementing Classes:
CGBooleanImpl, CGConstantImpl, CGElementIdImpl, CGIntegerImpl, CGInvalidImpl, CGNullImpl, CGNumberImpl, CGRealImpl, CGStringImpl, CGTextImpl, CGTypeIdImpl, CGUnlimitedImpl

public interface CGConstant
extends CGValuedElement

A representation of the model object 'CG Global Constant'. A CGConstant represents a constant value that may be shared by may CGConstantExp. The shared value may be generated as a global constant. Inlineable constants need no global declaration. Derived classes support distinct forms of constants.

See Also:
CGModelPackage.getCGConstant()
Generated

Method Summary
 java.lang.Object getConstantValue()
          Return the constant (boxed) value of this element.
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGValuedElement
getDependsOn, getInvalidValue, getNamedValue, getOwns, getReferredValue, getSourceValue, getThisValue, getTypedValue, getValueName, isAssertedNonNull, isBoxed, isCaught, isCommonable, isConstant, isEquivalentTo, isEquivalentToInternal, isFalse, isGlobal, isInlined, isInvalid, isNonInvalid, isNonNull, isNull, isSettable, isTrue, isUnboxed, isUncommonable, setCaught, setValueName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGTypedElement
getASTypeId, getTypeId, isRequired, setRequired, setTypeId
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGNamedElement
getAst, getName, setAst, setName
 
Methods inherited from interface org.eclipse.ocl.examples.codegen.cgmodel.CGElement
accept, getChildren, getParent, getPlace, isContext, rewriteAs
 
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

getConstantValue

@NonNull
java.lang.Object getConstantValue()
Return the constant (boxed) value of this element.

Generated