public Varnode resolve(HashMap<Object, Handle> handles, Position position, int bufoff) throws Exception {
		int spaceID,sz;
		long off;

		if (replace != null && !replace.dynamic()) {
			Handle h = replace.getHandle();
			spaceID = (int) h.getLong(Handle.SPACE,0);
			off =           h.getLong(Handle.OFFSET,Handle.OFFSET);
			sz =      (int) h.getLong(Handle.SIZE,0);
		}
		else {
			spaceID = (int) space.resolve(handles, position, bufoff);
			off =          offset.resolve(handles, position, bufoff);
			sz =       (int) size.resolve(handles, position, bufoff);
		}
		Address addr = getMaskedAddr(spaceID, off);
		return new Varnode(addr,sz);
	}
Method resolve.
@param handles
@return Varnode
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/generic/VarnodeTemplate.java