Package de.monticore.types3.util
Class BuiltInTypeRelations
- java.lang.Object
-
- de.monticore.types3.util.BuiltInTypeRelations
-
public class BuiltInTypeRelations extends java.lang.Objectrelations for built-in SymTypes these are the primitives, boxed primitives and String delegate of SymTypeRelations
-
-
Constructor Summary
Constructors Constructor Description BuiltInTypeRelations()BuiltInTypeRelations(SymTypeRelations symTypeRelations)Deprecated, for removal: This API element is subject to removal in a future version.use constructorBuiltInTypeRelations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisBoolean(SymTypeExpression type)booleanisBottom(SymTypeExpression type)booleanisByte(SymTypeExpression type)booleanisChar(SymTypeExpression type)booleanisDouble(SymTypeExpression type)booleanisFloat(SymTypeExpression type)booleanisInt(SymTypeExpression type)booleanisIntegralType(SymTypeExpression type)booleanisLong(SymTypeExpression type)booleanisNumericType(SymTypeExpression type)booleanisShort(SymTypeExpression type)booleanisString(SymTypeExpression type)booleanisStringOrSubType(SymTypeExpression type)booleanisTop(SymTypeExpression type)SymTypeExpressionnumericPromotion(java.util.List<SymTypeExpression> types)
-
-
-
Constructor Detail
-
BuiltInTypeRelations
public BuiltInTypeRelations()
-
BuiltInTypeRelations
@Deprecated(forRemoval=true) public BuiltInTypeRelations(SymTypeRelations symTypeRelations)
Deprecated, for removal: This API element is subject to removal in a future version.use constructorBuiltInTypeRelations()
-
-
Method Detail
-
numericPromotion
public SymTypeExpression numericPromotion(java.util.List<SymTypeExpression> types)
-
isNumericType
public boolean isNumericType(SymTypeExpression type)
-
isIntegralType
public boolean isIntegralType(SymTypeExpression type)
-
isBoolean
public boolean isBoolean(SymTypeExpression type)
-
isInt
public boolean isInt(SymTypeExpression type)
-
isDouble
public boolean isDouble(SymTypeExpression type)
-
isFloat
public boolean isFloat(SymTypeExpression type)
-
isLong
public boolean isLong(SymTypeExpression type)
-
isChar
public boolean isChar(SymTypeExpression type)
-
isShort
public boolean isShort(SymTypeExpression type)
-
isByte
public boolean isByte(SymTypeExpression type)
-
isString
public boolean isString(SymTypeExpression type)
-
isStringOrSubType
public boolean isStringOrSubType(SymTypeExpression type)
-
isTop
public boolean isTop(SymTypeExpression type)
-
isBottom
public boolean isBottom(SymTypeExpression type)
-
-