Package de.monticore.types.check
Class SymTypeOfSIUnit
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeOfSIUnit
- All Implemented Interfaces:
Comparable<SymTypeExpression>
SymTypeOfSIUnit stores any kind of derived SIUnit with prefixes, such as
m, km/h, m^2, ...
-
Field Summary
FieldsFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleanbooleanAm I an SIUnit type (e.g., "[km/h]")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>"Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, 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, isNumericWithSIUnitType, isObjectType, isObscureType, isPrimitive, isRegExType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, printAsJson, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
numerator
-
denominator
-
-
Constructor Details
-
SymTypeOfSIUnit
-
-
Method Details
-
getNumerator
-
getDenominator
-
isSIUnitType
public boolean isSIUnitType()Description copied from class:SymTypeExpressionAm I an SIUnit type (e.g., "[km/h]")- Overrides:
isSIUnitTypein classSymTypeExpression
-
asSIUnitType
- Overrides:
asSIUnitTypein 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
-