// Integer and Decimal are not built-in types, so we cannot compare them to static
// constants the way we can for the other types.
return valueNode instanceof LiteralValueNode &&
(typeExpr.sameType(typeConstants.getByteType()) ||
typeExpr.sameType(typeConstants.getShortType()) ||
typeExpr.sameType(typeConstants.getIntType()) ||
typeExpr.sameType(typeConstants.getIntegerType()) ||
typeExpr.sameType(typeConstants.getDecimalType()) ||
typeExpr.sameType(typeConstants.getLongType()) ||
typeExpr.sameType(typeConstants.getFloatType()) ||
typeExpr.sameType(typeConstants.getDoubleType()));