注意:从技术角度考虑,匿名类也拥有类型名称,该类型名称是由编译器自动生成的。
Note: Technically speaking, anonymous classes have names that are generated by the compiler.
HC编译器将对清单2 进行预处理,并使用 @xpath注释自动生成状态跟踪代码。
The HC compiler will preprocess Listing 2 and, using the @xpath comments, generate the state-tracking code automatically.
但我们正在考虑一种模式,在这种模式里,编译器将会生成自动释放池(autoreleasepools),而运行库将不会使用AutozoneGC。
But we are considering a mode where the compiler would emit autorelease pools and where the runtime would not use the Autozone GC.
toString打印出来的名字是由编译器生成的,捆绑了自动生成的id值。
Prints the name of the type that is synthesized by the compiler, along with the ID value that was generated automatically.
自动装箱:编译器不生成对包装器类的value Of方法的调用,而是生成对构造函数的调用。
Autoboxing: Rather than generating calls to the valueOf method in the wrapper class, the compiler generates calls to the constructor instead.
如果没有为一个类显式定义任何构造函数,编译器将自动为这个类生成默认构造函数。
If we do not explicitly define any constructors, then the compiler will generate the default constructor for us.
如果程序员没有提供拷贝构造函数,那么编译器会自动生成默认的拷贝构造函数。默认的拷贝构造函数会执行简单的操作,即按位拷贝对象。
Default copy constructor does a very simple operation, they will do a bit-wise (member-wise) copy of an object, which means that the object will be copied bit by bit.
编译器选项生成自动的预编译头支持。
Compiler option generated automatic precompiled headers support.
编译器选项生成自动的预编译头支持。
Compiler option generated automatic precompiled headers support.
应用推荐