Package de.monticore.types3.util
Class SymTypeRelationsDefaultDelegatee
java.lang.Object
de.monticore.types3.SymTypeRelations
de.monticore.types3.util.SymTypeRelationsDefaultDelegatee
Default implementation of SymTypeRelations.
As this is a collection of a lot of independent functionality, this itself simply delegates to discrete implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SymTypeBoxingVisitorprotected BuiltInTypeRelationsprotected SymTypeCompatibilityCalculatorprotected SymTypeLubCalculatorprotected SymTypeNormalizeVisitorprotected NominalSuperTypeCalculatorprotected SymTypeUnboxingVisitorFields inherited from class de.monticore.types3.SymTypeRelations
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SymTypeExpression_box(SymTypeExpression unboxed) _constrainCompatible(SymTypeExpression target, SymTypeExpression source) _constrainSameType(SymTypeExpression typeA, SymTypeExpression typeB) _constrainSubTypeOf(SymTypeExpression subType, SymTypeExpression superType) protected List<SymTypeExpression> _getNominalSuperTypes(SymTypeExpression thisType) _internal_constrainSubTypeOfPreNormalized(SymTypeExpression subType, SymTypeExpression superType) protected boolean_isBoolean(SymTypeExpression type) protected boolean_isBottom(SymTypeExpression type) protected boolean_isByte(SymTypeExpression type) protected boolean_isChar(SymTypeExpression type) protected boolean_isCompatible(SymTypeExpression target, SymTypeExpression source) protected boolean_isDouble(SymTypeExpression type) protected boolean_isFloat(SymTypeExpression type) protected boolean_isInt(SymTypeExpression type) protected booleanprotected boolean_isLong(SymTypeExpression type) protected booleanprotected boolean_isShort(SymTypeExpression type) protected boolean_isString(SymTypeExpression type) protected booleanprotected boolean_isSubTypeOf(SymTypeExpression subType, SymTypeExpression superType) protected boolean_isTop(SymTypeExpression type) protected Optional<SymTypeExpression> protected SymTypeExpression_normalize(SymTypeExpression type) protected SymTypeExpression_numericPromotion(List<SymTypeExpression> types) protected SymTypeExpression_unbox(SymTypeExpression boxed) Methods inherited from class de.monticore.types3.SymTypeRelations
box, constrainCompatible, constrainSameType, constrainSubTypeOf, getDelegate, getNominalSuperTypes, init, internal_constrainSubTypeOfPreNormalized, internal_isSubTypeOf, internal_isSubTypeOfPreNormalized, isBoolean, isBottom, isByte, isChar, isCompatible, isDouble, isFloat, isInt, isIntegralType, isLong, isNumericType, isShort, isString, isStringOrSubType, isSubTypeOf, isTop, leastUpperBound, leastUpperBound, normalize, numericPromotion, numericPromotion, reset, setDelegate, unbox
-
Field Details
-
compatibilityDelegate
-
superTypeCalculator
-
boxingVisitor
-
unboxingVisitor
-
normalizeVisitor
-
lubDelegate
-
builtInRelationsDelegate
-
-
Constructor Details
-
SymTypeRelationsDefaultDelegatee
public SymTypeRelationsDefaultDelegatee()
-
-
Method Details
-
_isCompatible
- Specified by:
_isCompatiblein classSymTypeRelations
-
_isSubTypeOf
- Specified by:
_isSubTypeOfin classSymTypeRelations
-
_getNominalSuperTypes
- Specified by:
_getNominalSuperTypesin classSymTypeRelations
-
_leastUpperBound
- Specified by:
_leastUpperBoundin classSymTypeRelations
-
_box
- Specified by:
_boxin classSymTypeRelations
-
_unbox
- Specified by:
_unboxin classSymTypeRelations
-
_normalize
- Specified by:
_normalizein classSymTypeRelations
-
_numericPromotion
- Specified by:
_numericPromotionin classSymTypeRelations
-
_isNumericType
- Specified by:
_isNumericTypein classSymTypeRelations
-
_isIntegralType
- Specified by:
_isIntegralTypein classSymTypeRelations
-
_isBoolean
- Specified by:
_isBooleanin classSymTypeRelations
-
_isInt
- Specified by:
_isIntin classSymTypeRelations
-
_isDouble
- Specified by:
_isDoublein classSymTypeRelations
-
_isFloat
- Specified by:
_isFloatin classSymTypeRelations
-
_isLong
- Specified by:
_isLongin classSymTypeRelations
-
_isChar
- Specified by:
_isCharin classSymTypeRelations
-
_isShort
- Specified by:
_isShortin classSymTypeRelations
-
_isByte
- Specified by:
_isBytein classSymTypeRelations
-
_isString
- Specified by:
_isStringin classSymTypeRelations
-
_isStringOrSubType
- Specified by:
_isStringOrSubTypein classSymTypeRelations
-
_isTop
- Specified by:
_isTopin classSymTypeRelations
-
_isBottom
- Specified by:
_isBottomin classSymTypeRelations
-
_constrainCompatible
- Specified by:
_constrainCompatiblein classSymTypeRelations
-
_constrainSubTypeOf
- Specified by:
_constrainSubTypeOfin classSymTypeRelations
-
_internal_constrainSubTypeOfPreNormalized
protected List<Bound> _internal_constrainSubTypeOfPreNormalized(SymTypeExpression subType, SymTypeExpression superType) - Specified by:
_internal_constrainSubTypeOfPreNormalizedin classSymTypeRelations
-
_constrainSameType
- Specified by:
_constrainSameTypein classSymTypeRelations
-