public long resolve(Position position, int off) throws Exception {
		switch(type) {

		case REAL: return realValue;

		case HANDLE: return op.getHandle(position,off).getLong(select1,select2);

		// return the address of the beginning of this instruction.
		case JUMP_START: return position.startAddr().getOffset();
		
		case JUMP_NEXT: return position.nextAddr().getOffset();
		
		case JUMP_CODESPACE:
			Address addr =  position.buffer().getAddress();
				return addr.getAddressSpace().getSpaceID();
		
		default:			// Should never reach here
			return 0;
		}
	}
Method resolve.
@param position the position of the constant to resolve
@param off the offset of the constant
@return long
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/generic/ConstantTemplate.java