java |合成是什么意思?

标签 java class methods synthetic

我正在浏览 java Method.class (反编译)我发现了一些引起我注意的东西。

@Override
public boolean isSynthetic() {
    return super.isSynthetic();
}

合成”。这是什么意思?

它可以在代码中使用吗?

.

自从我在Method中找到这个之后类,我想知道,整个方法是否可以是“合成的”,或者它包含一些合成的东西?

提前致谢。

.

不是 What is the meaning of “static synthetic”? 的副本

最佳答案

Any constructs introduced by the compiler that do not have a corresponding construct in the source code must be marked as synthetic, except for default constructors and the class initialization method.

http://www.javaworld.com/article/2073578/java-s-synthetic-methods.html

关于 java |合成是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34866730/

相关文章:

java - 请解释这个Java boolean 逻辑语句

python - 将带有 **kwargs 错误的值线程化并传递给 TypeError

java - 玩牌时遇到麻烦

c# - 具有异常处理的方法参数

java - 方法不返回 int

java |图书馆内部图书馆包装

Java在子类的复制构造函数中使用父类(super class)的 protected 方法

java - 动态镜像类并添加构造函数

python - 从嵌套字典构建类

c++ - 多个类头文件需要枚举类型