public RuntimeType getType() {
        if (isArrayValue()) {
            return RuntimeType.ARRAY;
        } else if (isObjectValue()) {
            return RuntimeType.OBJECT;
        } else if (isStringValue()) {
            return RuntimeType.STRING;
        } else if (isBooleanValue()) {
            return RuntimeType.BOOLEAN;
        } else if (isNumberValue()) {
            return RuntimeType.NUMBER;
        } else if (isNullValue()) {
            return RuntimeType.NULL;
        } else if (this == EXPREF) {
            return RuntimeType.EXPRESSION;
        } else {
            return RuntimeType.ANY;
        }
    }
Gets the type of the value.

@return Returns the literal expression's runtime type.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/LiteralExpression.java