public class BooleanObjectDescriptor extends SimpleValueDescriptor implements SimpleDescriptor
AbstractDescriptor.NamedFuture
Modifier and Type | Field and Description |
---|---|
protected BooleanPrimitiveDescriptor |
primitiveTypeDescriptor |
javaClass
elementId
Constructor and Description |
---|
BooleanObjectDescriptor(ElementId elementId) |
Modifier and Type | Method and Description |
---|---|
void |
appendCast(JavaStream js,
java.lang.Class<?> actualJavaClass,
JavaStream.SubStream subStream)
Append the actualJavaClass subStream to js wrapped in a cast to this type.g.
|
void |
appendEqualsValue(JavaStream js,
CGValuedElement thisValue,
CGValuedElement thatValue,
boolean notEquals)
Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equals/ notEquals to thatValue.
|
void |
appendNotEqualsTerm(JavaStream js,
CGValuedElement thisValue,
TypeDescriptor thatTypeDescriptor,
java.lang.String thatName)
Append an expression term that evaluates whether (this TypedDescriptor and) thisValue is not equal to thatTypeDescriptor and thatName.
|
TypeDescriptor |
getPrimitiveDescriptor()
Return the type descriptor for use when a primitive type would be appropriate.
|
getEcoreDescriptor, getUnboxedDescriptor, isAssignableFrom
append, getClassName, getJavaClass, hasJavaClass, isAssignableTo, toString
appendBox, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendUnboxStatements, asCollectionDescriptor, getEClassifier, getElementId, isBoxedType, isPrimitive, reClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append, appendBox, appendCastTerm, appendEcore, appendEcoreStatements, appendEcoreValue, appendUnboxStatements, asCollectionDescriptor, getClassName, getEClassifier, getEcoreDescriptor, getJavaClass, getUnboxedDescriptor, hasJavaClass, isAssignableFrom, isAssignableTo, isPrimitive
@NonNull protected final BooleanPrimitiveDescriptor primitiveTypeDescriptor
public BooleanObjectDescriptor(@NonNull ElementId elementId)
public void appendCast(@NonNull JavaStream js, @Nullable java.lang.Class<?> actualJavaClass, @Nullable JavaStream.SubStream subStream)
TypeDescriptor
appendCast
in interface TypeDescriptor
appendCast
in class AbstractDescriptor
public void appendNotEqualsTerm(@NonNull JavaStream js, @NonNull CGValuedElement thisValue, @NonNull TypeDescriptor thatTypeDescriptor, @NonNull java.lang.String thatName)
TypeDescriptor
appendNotEqualsTerm
in interface TypeDescriptor
appendNotEqualsTerm
in class AbstractDescriptor
public void appendEqualsValue(@NonNull JavaStream js, @NonNull CGValuedElement thisValue, @NonNull CGValuedElement thatValue, boolean notEquals)
TypeDescriptor
appendEqualsValue
in interface TypeDescriptor
appendEqualsValue
in class AbstractDescriptor
@NonNull public TypeDescriptor getPrimitiveDescriptor()
TypeDescriptor
getPrimitiveDescriptor
in interface TypeDescriptor
getPrimitiveDescriptor
in class AbstractDescriptor