2011-05-11 88 views
-2

请参阅此API。这个链接是:在java中,字段和类之间有什么关系?

http://download.carrot2.org/stable/javadoc/org/carrot2/text/preprocessing/pipeline/CompletePreprocessingPipeline.html

Class CompletePreprocessingPipeline 

Field Summary 
DocumentAssigner documentAssigner 
      Document assigner used by the algorithm, contains bindable attributes.

然后我发现使用completePreprocessingPipeline这样

​​

我不明白的术语 “completePreprocessingPipeline” 和 “documentAssigner” 之间的关系“的一些例子字段vs.class“。

回答

1

您的示例必须来自其他语言。也许是一种可以在JVM上运行或查看Java库的脚本语言。

什么可能在java中是真实的:

CompletePreprocessingPipeline completePreprocessingPipeline = new CompletePreprocessingPipeline(); 
completePreprocessingPipeline.documentAssigner.exactPhraseAssignment = true; 

你实例化一个类,并得到一个对象。然后,如果字段修饰符允许,则可以引用该对象中的字段(例如,它是public例如)

0

一个字段是一个类的成员变量。该字段的类型可能确实是另一类。

在这种情况下,它们看起来是“吸气方法”.documentAssigner(),其返回documentAssigner字段,其​​类型为DocumentAssigner

0

我不明白,在 “字段 vs.class” 的条款之间 “completePreprocessingPipeline” 和 “documentAssigner” 的关系 。

这是因为你的问题没有意义。 completePreprocessingPipeline()和documentAssigner()都是方法。该代码中完全没有字段。广告中缺少'。'。

相关问题