Package de.monticore.types.check
Class SymTypeOfNull
- java.lang.Object
-
- de.monticore.types.check.SymTypeExpression
-
- de.monticore.types.check.SymTypeOfNull
-
public class SymTypeOfNull extends SymTypeExpression
-
-
Field Summary
-
Fields inherited from class de.monticore.types.check.SymTypeExpression
functionList, LOG_NAME, sourceInfo, typeSymbol
-
-
Constructor Summary
Constructors Constructor Description SymTypeOfNull()Deprecated.contains no non-deprecated program logic
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISymTypeVisitor visitor)SymTypeOfNullasNullType()booleandeepEquals(SymTypeExpression sym)booleanisNullType()Am I of null type?-
Methods inherited from class de.monticore.types.check.SymTypeExpression
_internal_setSourceInfo, asArrayType, asFunctionType, asGenericType, asInferenceVariable, asIntersectionType, asNumericWithSIUnitType, asObjectType, asObscureType, asPrimitive, asRegExType, asSIUnitType, asTupleType, asTypeVariable, asUnionType, asVoidType, asWildcard, deepClone, getCorrectFields, getCorrectFields, getCorrectMethods, getCorrectMethods, getFieldList, getFieldList, getFieldList, getFieldList, getMethodList, getMethodList, getMethodList, getMethodList, getSourceInfo, getTypeInfo, hasTypeInfo, isArrayType, isFunctionType, isGenericType, isInferenceVariable, isIntersectionType, isNumericWithSIUnitType, isObjectType, isObscureType, isPrimitive, isRegExType, isSIUnitType, isTupleType, isTypeVariable, isUnionType, isValidType, isVoidType, isWildcard, print, printAsJson, printFullName, replaceTypeVariables, transformFieldList, transformMethodList
-
-
-
-
Constructor Detail
-
SymTypeOfNull
@Deprecated public SymTypeOfNull()
Deprecated.contains no non-deprecated program logicThis Class represents the type of the value "null". This type doesn't really exist (hence the print method delivers "nullType", i.e. _nullTypeString), but the object is used to attach "null" a proper type, which is then compatible to e.g. to TypeConstant or TypeArray, int[] j = null; ok Integer i2 = null; ok but not e.g. to int int i = null; illegal
-
-
Method Detail
-
isNullType
public boolean isNullType()
Description copied from class:SymTypeExpressionAm I of null type?- Overrides:
isNullTypein classSymTypeExpression
-
asNullType
public SymTypeOfNull asNullType()
- Overrides:
asNullTypein classSymTypeExpression
-
deepEquals
public boolean deepEquals(SymTypeExpression sym)
- Specified by:
deepEqualsin classSymTypeExpression
-
accept
public void accept(ISymTypeVisitor visitor)
- Overrides:
acceptin classSymTypeExpression
-
-