java 中的指称是什么?

What is referent in java?

referent在java语言中是什么意思?

我在 java 中阅读有关 phantom references 的内容时遇到了这个词,但那里没有解释,只是使用了(这个词)。我也无法通过搜索 Google 找到答案。

我可以从上下文得出的结论是,引用指向的是对象,但不确定所以我想确定它是什么。

编辑:按照评论中的建议,我添加了使用该词的上下文:

The Garbage Collector adds a phantom reference to a reference queue after the finalize method of its referent is executed. It implies that the instance is still in the memory.

I came across this word while reading about phantom references in java but it was not explained, just used

假设您指的是 PhantomReference 的 javadoc,该词在记录的方法中有解释:

public PhantomReference(T referent, ReferenceQueue<? super T> q)

Parameters:
referent - the object the new phantom reference will refer to

public T get()

Returns this reference object's referent.

Java中有四种类型的引用:

Phantom references are not automatically cleared by the garbage collector as they are enqueued. An object that is reachable via phantom references will remain so until all such references are cleared or themselves become unreachable. more... and example