org.eclipse.ocl.examples.codegen.java.types
Class BooleanPrimitiveDescriptor
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.BooleanPrimitiveDescriptor
- All Implemented Interfaces:
- TypeDescriptor, BoxedDescriptor, SimpleDescriptor, UnboxedDescriptor
public class BooleanPrimitiveDescriptor
- extends SimpleValueDescriptor
- implements SimpleDescriptor
A BooleanPrimitiveDescriptor 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 |
appendBox, appendCastTerm, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getJavaClass, getPrimitiveDescriptor, getUnboxedDescriptor, hasJavaClass, isAssignableFrom, isAssignableTo |
BooleanPrimitiveDescriptor
public BooleanPrimitiveDescriptor(@NonNull
ElementId elementId)
append
public void append(@NonNull
JavaStream js)
- Description copied from interface:
TypeDescriptor
- Append the declaration of this type to a JavaStream. e.g. "typename"
- Specified by:
append
in interface TypeDescriptor
- Overrides:
append
in class AbstractValueDescriptor
appendCast
public void appendCast(@NonNull
JavaStream js,
@Nullable
java.lang.Class<?> actualJavaClass,
@Nullable
JavaStream.SubStream subStream)
- Description copied from interface:
TypeDescriptor
- Append the actualJavaClass subStream to js wrapped in a cast to this type.g. "(typename)subStream"
- Specified by:
appendCast
in interface TypeDescriptor
- Overrides:
appendCast
in class AbstractDescriptor
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