Package de.monticore.types.check
Class SymTypeOfWildcard
java.lang.Object
de.monticore.types.check.SymTypeExpression
de.monticore.types.check.SymTypeOfWildcard
- All Implemented Interfaces:
Comparable<SymTypeExpression>
-
Field Summary
FieldsFields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.use the Factory, the Factory uses the constructor belowSymTypeOfWildcard(SymTypeExpression bound, boolean isUpper) To be used by the SymTypeExpressionFactory -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ISymTypeVisitor visitor) booleangetBound()booleanhasBound()booleanisUpper()booleanAm I a not valid type? e.g.booleanAm I a wildcard (s.Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNullType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, compareTo, deepClone, 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, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isVoidType, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
Field Details
-
bound
-
isUpper
protected boolean isUpper
-
-
Constructor Details
-
SymTypeOfWildcard
Deprecated, for removal: This API element is subject to removal in a future version.use the Factory, the Factory uses the constructor below -
SymTypeOfWildcard
To be used by the SymTypeExpressionFactory
-
-
Method Details
-
hasBound
public boolean hasBound() -
getBound
-
isUpper
public boolean isUpper() -
getUpperBound
- Returns:
- upper bound, TOP if not bounded otherwise
-
getLowerBound
- Returns:
- lower bound, BOTTOM if not bounded otherwise
-
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
-
isWildcard
public boolean isWildcard()Description copied from class:SymTypeExpressionAm I a wildcard (s. generics)?- Overrides:
isWildcardin classSymTypeExpression
-
asWildcard
- Overrides:
asWildcardin classSymTypeExpression
-
deepEquals
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
- Overrides:
acceptin classSymTypeExpression
-