Package de.monticore.types.check
Class SymTypeVariable
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeVariable
- All Implemented Interfaces:
Comparable<SymTypeExpression>
-
Field Summary
FieldsFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, sourceInfo, typeSymbol -
Constructor Summary
ConstructorsConstructorDescriptionSymTypeVariable(TypeSymbol typeSymbol) Deprecated, for removal: This API element is subject to removal in a future version.SymTypeVariable(TypeVarSymbol typeSymbol) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleanbooleandenotesSameVar(SymTypeExpression other) Deprecated, for removal: This API element is subject to removal in a future version.leftover of old version, simply use deepEquals() instead.Deprecated.a type variable only allows sub-types of its upper bound, e.g., T extends NumberDeprecated, for removal: This API element is subject to removal in a future version.unused in main projects also: getter and setter do something different, questionablebooleanDeprecated, for removal: This API element is subject to removal in a future version.(should) return truebooleanAm I primitive? (such as "int") (default: no)booleanAm I a bound type variable?booleanAm I a not valid type? e.g.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>"voidsetVarName(String name) Deprecated, for removal: This API element is subject to removal in a future version.unused in main projectsMethods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asUnionType, asVoidType, asWildcard, compareTo, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, hasTypeInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNullType, isNumericWithSIUnitType, isObjectType, isObscureType, isRegExType, isSIUnitType, isTupleType, isUnionType, isVoidType, isWildcard, printAsJson, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
LOG_NAME
- See Also:
-
typeVarSymbol
-
-
Constructor Details
-
SymTypeVariable
-
SymTypeVariable
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
hasTypeVarSymbol
Deprecated, for removal: This API element is subject to removal in a future version.(should) return true -
getTypeVarSymbol
-
getTypeInfo
Deprecated.Description copied from class:SymTypeExpressionReturns an TypeSymbol representing the type Only to be called according toSymTypeExpression.hasTypeInfo()As most SymTypeExpressions do not have a TypeSymbol (this is legacy), this method will log a warning and is expected to be overridden, if a TypeSymbol exists.
- Overrides:
getTypeInfoin classSymTypeExpression
-
getUpperBound
a type variable only allows sub-types of its upper bound, e.g., T extends Number -
getVarName
Deprecated, for removal: This API element is subject to removal in a future version.unused in main projects also: getter and setter do something different, questionable -
setVarName
Deprecated, for removal: This API element is subject to removal in a future version.unused in main projects -
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:
-
isPrimitive
public boolean isPrimitive()Description copied from class:SymTypeExpressionAm I primitive? (such as "int") (default: no)- Overrides:
isPrimitivein classSymTypeExpression
-
isValidType
public boolean isValidType()Description copied from class:SymTypeExpressionAm I a not valid type? e.g. unknown type, not all type variables set, pseudo types like typeVariables- Overrides:
isValidTypein classSymTypeExpression
-
isTypeVariable
public boolean isTypeVariable()Description copied from class:SymTypeExpressionAm I a bound type variable?- Overrides:
isTypeVariablein classSymTypeExpression
-
asTypeVariable
- Overrides:
asTypeVariablein classSymTypeExpression
-
deepClone
- Overrides:
deepClonein classSymTypeExpression
-
denotesSameVar
Deprecated, for removal: This API element is subject to removal in a future version.leftover of old version, simply use deepEquals() instead.Similar to deepEquals, but only checks whether the variables are supposed to be the same variable. E.g., bounds are ignored -
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-