Package de.monticore.types.check
Class SymTypeOfNumericWithSIUnit
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeOfNumericWithSIUnit
- All Implemented Interfaces:
Comparable<SymTypeExpression>
SymTypeOfNumericWithSIUnit stores any kind of Numerics
combined with SIUnit applied such as
m<int>
m/s<double>-
Field Summary
FieldsFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol -
Constructor Summary
ConstructorsConstructorDescriptionSymTypeOfNumericWithSIUnit(SymTypeOfSIUnit siUnitType, SymTypeExpression numericType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleanbooleanAm I a numeric with SIUnit type (e.g.,"[km/h]<float>")print()print: Conversion to a compact string, such as"int","Person","List< A >"printFullName: prints the full name of the symbol, such as"java.util.List<java.lang.String>"voidsetNumericType(SymTypeExpression numericType) voidsetSIUnitType(SymTypeOfSIUnit siUnitType) Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, asWildcard, compareTo, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, getTypeInfo, hasTypeInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNullType, isObjectType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, printAsJson, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
siUnitType
-
numericType
-
-
Constructor Details
-
SymTypeOfNumericWithSIUnit
-
-
Method Details
-
getSIUnitType
-
setSIUnitType
-
getNumericType
-
setNumericType
-
isNumericWithSIUnitType
public boolean isNumericWithSIUnitType()Description copied from class:SymTypeExpressionAm I a numeric with SIUnit type (e.g.,"[km/h]<float>")- Overrides:
isNumericWithSIUnitTypein classSymTypeExpression
-
asNumericWithSIUnitType
- Overrides:
asNumericWithSIUnitTypein classSymTypeExpression
-
print
Description copied from class:SymTypeExpressionprint: Conversion to a compact string, such as"int","Person","List< A >"- Overrides:
printin classSymTypeExpression
-
printFullName
Description copied from class:SymTypeExpressionprintFullName: prints the full name of the symbol, such as"java.util.List<java.lang.String>"- Overrides:
printFullNamein classSymTypeExpression- Returns:
-
deepClone
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-