public long fix(ParserWalker walker) {
		switch (type) {
			case J_START:
				return walker.getAddr().getOffset();
			case J_NEXT:
				return walker.getNaddr().getOffset();
			case J_NEXT2:
				return walker.getN2addr().getOffset();
			case J_FLOWREF:
				return walker.getFlowRefAddr().getOffset();
			case J_FLOWREF_SIZE:
				return walker.getFlowRefAddr().getAddressSpace().getPointerSize();
			case J_FLOWDEST:
				return walker.getFlowDestAddr().getOffset();
			case J_FLOWDEST_SIZE:
				return walker.getFlowDestAddr().getAddressSpace().getPointerSize();
			case J_CURSPACE_SIZE:
				return walker.getCurSpace().getPointerSize();
			case J_CURSPACE:
				return walker.getCurSpace().getSpaceID();
			case HANDLE: {
				FixedHandle hand = walker.getFixedHandle(handle_index);
				switch (select) {
					case V_SPACE:
						if (hand.offset_space == null) {
							return hand.space.getSpaceID();
						}
						return hand.temp_space.getSpaceID();
					case V_OFFSET:
						if (hand.offset_space == null) {
							return hand.offset_offset;
						}
						return hand.temp_offset;
					case V_SIZE:
						return hand.size;
					case V_OFFSET_PLUS:
						if (hand.space.getType() != AddressSpace.TYPE_CONSTANT) {	// If we are not a constant
							if (hand.offset_space == null) {
								return hand.offset_offset + (value_real & 0xffff);		// Adjust offset by truncation amount
							}
							return hand.temp_offset + (value_real & 0xffff);
						}
						// If we are a constant, shift by the truncation amount
						long val;
						if (hand.offset_space == null) {
							val = hand.offset_offset;
						}
						else {
							val = hand.temp_offset;
						}
						val >>= 8 * (value_real >> 16);
						return val;
				}
				break;
			}
			case J_RELATIVE:
			case REAL:
				return value_real;
			case SPACEID:
				return value_spaceid.getSpaceID();
		}
		return 0;			// Should never reach here
	}
A placeholder for what will resolve to a field of a Varnode
(an AddressSpace or integer offset or integer size)
given a particular InstructionContext
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/template/ConstTpl.java