Package de.monticore.types.check
Class SymTypeOfSIUnit
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfSIUnit
-
public class SymTypeOfSIUnit extends SymTypeExpression
SymTypeOfSIUnit stores any kind of derived SIUnit with prefixes, such as m, km/h, m^2, ...
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<SIUnitBasic>denominatorprotected java.util.List<SIUnitBasic>numerator-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfSIUnit(java.util.List<SIUnitBasic> numerator, java.util.List<SIUnitBasic> denominator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISymTypeVisitor visitor)SymTypeOfSIUnitasSIUnitType()SymTypeOfSIUnitdeepClone()booleandeepEquals(SymTypeExpression sym)java.util.List<SIUnitBasic>getDenominator()java.util.List<SIUnitBasic>getNumerator()booleanisSIUnitType()Am I an SIUnit type (e.g., "[km/h]")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>"-
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, 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 Detail
-
numerator
protected java.util.List<SIUnitBasic> numerator
-
denominator
protected java.util.List<SIUnitBasic> denominator
-
-
Constructor Detail
-
SymTypeOfSIUnit
public SymTypeOfSIUnit(java.util.List<SIUnitBasic> numerator, java.util.List<SIUnitBasic> denominator)
-
-
Method Detail
-
getNumerator
public java.util.List<SIUnitBasic> getNumerator()
-
getDenominator
public java.util.List<SIUnitBasic> getDenominator()
-
isSIUnitType
public boolean isSIUnitType()
Description copied from class:SymTypeExpressionAm I an SIUnit type (e.g., "[km/h]")- Overrides:
isSIUnitTypein classSymTypeExpression
-
asSIUnitType
public SymTypeOfSIUnit asSIUnitType()
- Overrides:
asSIUnitTypein 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 SymTypeOfSIUnit deepClone()
- Overrides:
deepClonein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
-