Package de.monticore.types3.util
Class SymTypeRelationsDefaultDelegatee
- java.lang.Object
-
- de.monticore.types3.SymTypeRelations
-
- de.monticore.types3.util.SymTypeRelationsDefaultDelegatee
-
public class SymTypeRelationsDefaultDelegatee extends SymTypeRelations
Default implementation of SymTypeRelations.As this is a collection of a lot of independent functionality, this itself simply delegates to discrete implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected SymTypeBoxingVisitorboxingVisitorprotected BuiltInTypeRelationsbuiltInRelationsDelegateprotected SymTypeCompatibilityCalculatorcompatibilityDelegateprotected SymTypeLubCalculatorlubDelegateprotected SymTypeNormalizeVisitornormalizeVisitorprotected NominalSuperTypeCalculatorsuperTypeCalculatorprotected SymTypeUnboxingVisitorunboxingVisitor-
Fields inherited from class de.monticore.types3.SymTypeRelations
delegate
-
-
Constructor Summary
Constructors Constructor Description SymTypeRelationsDefaultDelegatee()
-
Method Summary
-
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 Detail
-
compatibilityDelegate
protected SymTypeCompatibilityCalculator compatibilityDelegate
-
superTypeCalculator
protected NominalSuperTypeCalculator superTypeCalculator
-
boxingVisitor
protected SymTypeBoxingVisitor boxingVisitor
-
unboxingVisitor
protected SymTypeUnboxingVisitor unboxingVisitor
-
normalizeVisitor
protected SymTypeNormalizeVisitor normalizeVisitor
-
lubDelegate
protected SymTypeLubCalculator lubDelegate
-
builtInRelationsDelegate
protected BuiltInTypeRelations builtInRelationsDelegate
-
-
Method Detail
-
_isCompatible
protected boolean _isCompatible(SymTypeExpression target, SymTypeExpression source)
- Specified by:
_isCompatiblein classSymTypeRelations
-
_isSubTypeOf
protected boolean _isSubTypeOf(SymTypeExpression subType, SymTypeExpression superType)
- Specified by:
_isSubTypeOfin classSymTypeRelations
-
_getNominalSuperTypes
protected java.util.List<SymTypeExpression> _getNominalSuperTypes(SymTypeExpression thisType)
- Specified by:
_getNominalSuperTypesin classSymTypeRelations
-
_leastUpperBound
protected java.util.Optional<SymTypeExpression> _leastUpperBound(java.util.Collection<SymTypeExpression> types)
- Specified by:
_leastUpperBoundin classSymTypeRelations
-
_box
protected SymTypeExpression _box(SymTypeExpression unboxed)
- Specified by:
_boxin classSymTypeRelations
-
_unbox
protected SymTypeExpression _unbox(SymTypeExpression boxed)
- Specified by:
_unboxin classSymTypeRelations
-
_normalize
protected SymTypeExpression _normalize(SymTypeExpression type)
- Specified by:
_normalizein classSymTypeRelations
-
_numericPromotion
protected SymTypeExpression _numericPromotion(java.util.List<SymTypeExpression> types)
- Specified by:
_numericPromotionin classSymTypeRelations
-
_isNumericType
protected boolean _isNumericType(SymTypeExpression type)
- Specified by:
_isNumericTypein classSymTypeRelations
-
_isIntegralType
protected boolean _isIntegralType(SymTypeExpression type)
- Specified by:
_isIntegralTypein classSymTypeRelations
-
_isBoolean
protected boolean _isBoolean(SymTypeExpression type)
- Specified by:
_isBooleanin classSymTypeRelations
-
_isInt
protected boolean _isInt(SymTypeExpression type)
- Specified by:
_isIntin classSymTypeRelations
-
_isDouble
protected boolean _isDouble(SymTypeExpression type)
- Specified by:
_isDoublein classSymTypeRelations
-
_isFloat
protected boolean _isFloat(SymTypeExpression type)
- Specified by:
_isFloatin classSymTypeRelations
-
_isLong
protected boolean _isLong(SymTypeExpression type)
- Specified by:
_isLongin classSymTypeRelations
-
_isChar
protected boolean _isChar(SymTypeExpression type)
- Specified by:
_isCharin classSymTypeRelations
-
_isShort
protected boolean _isShort(SymTypeExpression type)
- Specified by:
_isShortin classSymTypeRelations
-
_isByte
protected boolean _isByte(SymTypeExpression type)
- Specified by:
_isBytein classSymTypeRelations
-
_isString
protected boolean _isString(SymTypeExpression type)
- Specified by:
_isStringin classSymTypeRelations
-
_isStringOrSubType
protected boolean _isStringOrSubType(SymTypeExpression type)
- Specified by:
_isStringOrSubTypein classSymTypeRelations
-
_isTop
protected boolean _isTop(SymTypeExpression type)
- Specified by:
_isTopin classSymTypeRelations
-
_isBottom
protected boolean _isBottom(SymTypeExpression type)
- Specified by:
_isBottomin classSymTypeRelations
-
_constrainCompatible
protected java.util.List<Bound> _constrainCompatible(SymTypeExpression target, SymTypeExpression source)
- Specified by:
_constrainCompatiblein classSymTypeRelations
-
_constrainSubTypeOf
protected java.util.List<Bound> _constrainSubTypeOf(SymTypeExpression subType, SymTypeExpression superType)
- Specified by:
_constrainSubTypeOfin classSymTypeRelations
-
_internal_constrainSubTypeOfPreNormalized
protected java.util.List<Bound> _internal_constrainSubTypeOfPreNormalized(SymTypeExpression subType, SymTypeExpression superType)
- Specified by:
_internal_constrainSubTypeOfPreNormalizedin classSymTypeRelations
-
_constrainSameType
protected java.util.List<Bound> _constrainSameType(SymTypeExpression typeA, SymTypeExpression typeB)
- Specified by:
_constrainSameTypein classSymTypeRelations
-
-