@Override
	public Scalar getScalar() {
		HighVariable hvar = getHighVariable();
		if (hvar == null) {
			return null;
		}
		DataType dt = hvar.getDataType();
		int sz = dt.getLength();
		if (sz < 1 || sz > 8) {
			return null;
		}
		boolean isSigned = true;
		if (dt instanceof AbstractIntegerDataType) {
			isSigned = ((AbstractIntegerDataType) dt).isSigned();
		}

		return new Scalar(sz * 8, value, isSigned);
	}
A token representing a switch "case" label, or other constant not directly linked to data-flow.
The token has an associated constant value and a data-type
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/ClangCaseToken.java