org.eclipse.ocl.examples.codegen.java.types
Class BooleanObjectDescriptor
java.lang.Object
org.eclipse.ocl.examples.codegen.java.types.AbstractDescriptor
org.eclipse.ocl.examples.codegen.java.types.AbstractValueDescriptor
org.eclipse.ocl.examples.codegen.java.types.SimpleValueDescriptor
org.eclipse.ocl.examples.codegen.java.types.BooleanObjectDescriptor
- All Implemented Interfaces:
- TypeDescriptor, BoxedDescriptor, SimpleDescriptor, UnboxedDescriptor
public class BooleanObjectDescriptor
- extends SimpleValueDescriptor
- implements SimpleDescriptor
A BooleanObjectDescriptor describes the Boolean type and any associated irregular code generation patterns.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.codegen.generator.TypeDescriptor |
append, appendBox, appendCast, appendCastTerm, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getUnboxedDescriptor, hasJavaClass, isAssignableFrom, isAssignableTo |
primitiveTypeDescriptor
@NonNull
protected final BooleanPrimitiveDescriptor primitiveTypeDescriptor
BooleanObjectDescriptor
public BooleanObjectDescriptor(@NonNull
ElementId elementId)
appendNotEqualsTerm
public void appendNotEqualsTerm(@NonNull
JavaStream js,
@NonNull
CGValuedElement thisValue,
@NonNull
TypeDescriptor thatTypeDescriptor,
@NonNull
java.lang.String thatName)
- Description copied from interface:
TypeDescriptor
- Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equal to thatTypeDescriptor and thatName.
- Specified by:
appendNotEqualsTerm
in interface TypeDescriptor
- Overrides:
appendNotEqualsTerm
in class AbstractDescriptor
appendEqualsValue
public void appendEqualsValue(@NonNull
JavaStream js,
@NonNull
CGValuedElement thisValue,
@NonNull
CGValuedElement thatValue,
boolean notEquals)
- Description copied from interface:
TypeDescriptor
- Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equals/ notEquals to thatValue.
It is assumed that all the degenerate constant cases have been optimzed away.
- Specified by:
appendEqualsValue
in interface TypeDescriptor
- Overrides:
appendEqualsValue
in class AbstractDescriptor
getPrimitiveDescriptor
@NonNull
public TypeDescriptor getPrimitiveDescriptor()
- Description copied from interface:
TypeDescriptor
- Return the type descriptor for use when a primitive type would be appropriate.
Returns this when there is no distinction for primitive types.
- Specified by:
getPrimitiveDescriptor
in interface TypeDescriptor
- Overrides:
getPrimitiveDescriptor
in class AbstractDescriptor