我正在浏览 java Method.class
(反编译)我发现了一些引起我注意的东西。
@Override
public boolean isSynthetic() {
return super.isSynthetic();
}
“合成”。这是什么意思?
它可以在代码中使用吗?
.
自从我在Method
中找到这个之后类,我想知道,整个方法是否可以是“合成的”,或者它包含一些合成的东西?
提前致谢。
.
最佳答案
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/