Package de.monticore.types.check
Class SymTypeOfNumericWithSIUnit
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfNumericWithSIUnit
-
public class SymTypeOfNumericWithSIUnit extends SymTypeExpression
SymTypeOfNumericWithSIUnit stores any kind of Numerics combined with SIUnit applied such asm<int>m/s<double>
-
-
Field Summary
Fields Modifier and Type Field Description protected SymTypeExpressionnumericTypeprotected SymTypeOfSIUnitsiUnitType-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfNumericWithSIUnit(SymTypeOfSIUnit siUnitType, SymTypeExpression numericType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISymTypeVisitor visitor)SymTypeOfNumericWithSIUnitasNumericWithSIUnitType()SymTypeOfNumericWithSIUnitdeepClone()booleandeepEquals(SymTypeExpression sym)SymTypeExpressiongetNumericType()SymTypeOfSIUnitgetSIUnitType()booleanisNumericWithSIUnitType()Am I a numeric with SIUnit type (e.g.,"[km/h]<float>")java.lang.Stringprint()print: Conversion to a compact string, such as"int","Person","List< A >"java.lang.StringprintFullName()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, 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 Detail
-
siUnitType
protected SymTypeOfSIUnit siUnitType
-
numericType
protected SymTypeExpression numericType
-
-
Constructor Detail
-
SymTypeOfNumericWithSIUnit
public SymTypeOfNumericWithSIUnit(SymTypeOfSIUnit siUnitType, SymTypeExpression numericType)
-
-
Method Detail
-
getSIUnitType
public SymTypeOfSIUnit getSIUnitType()
-
setSIUnitType
public void setSIUnitType(SymTypeOfSIUnit siUnitType)
-
getNumericType
public SymTypeExpression getNumericType()
-
setNumericType
public void setNumericType(SymTypeExpression numericType)
-
isNumericWithSIUnitType
public boolean isNumericWithSIUnitType()
Description copied from class:SymTypeExpressionAm I a numeric with SIUnit type (e.g.,"[km/h]<float>")- Overrides:
isNumericWithSIUnitTypein classSymTypeExpression
-
asNumericWithSIUnitType
public SymTypeOfNumericWithSIUnit asNumericWithSIUnitType()
- Overrides:
asNumericWithSIUnitTypein classSymTypeExpression
-
print
public java.lang.String print()
Description copied from class:SymTypeExpressionprint: Conversion to a compact string, such as"int","Person","List< A >"- Overrides:
printin classSymTypeExpression
-
printFullName
public java.lang.String 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
public SymTypeOfNumericWithSIUnit deepClone()
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
-