Class ConstantUntypedNull

All Implemented Interfaces:
Node

public class ConstantUntypedNull extends ConstantExpression
Represents a constant null of unknown type Java allows type inference for such nulls, thus "null" cannot always be replaced to (Object)null and vise versa.

ConstantExpression(null, Object.class) is not equal to ConstantUntypedNull However, optimizers might treat all the nulls equal (e.g. in case of comparison).