- All Superinterfaces:
Conversion
Conversion of a null pointer constant to any pointer type.
An integer constant expression with the value 0, or such an
expression cast to type void *, is called a null pointer
constant. If a null pointer constant is converted to a pointer type, the
resulting pointer, called a null pointer, is guaranteed to compare unequal to
a pointer to any object or function.
Also:
Conversion of a null pointer to another pointer type yields a null pointer of that type. Any two null pointers shall compare equal.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.abc.ast.conversion.IF.Conversion
Conversion.ConversionKind -
Method Summary
Modifier and TypeMethodDescriptionA pointer type.An integer type orvoid*.Methods inherited from interface dev.civl.abc.ast.conversion.IF.Conversion
conversionKind
-
Method Details
-
getOldType
ObjectType getOldType()An integer type orvoid*.- Specified by:
getOldTypein interfaceConversion- Returns:
- the pre-conversion type
-
getNewType
PointerType getNewType()A pointer type.- Specified by:
getNewTypein interfaceConversion- Returns:
- the post-conversion type
-