< prev index next >

src/java.base/share/classes/java/lang/constant/ConstantDescs.java

Print this page

291             = DynamicConstantDesc.ofNamed(BSM_GET_STATIC_FINAL,
292                                           "TRUE", CD_Boolean, CD_Boolean);
293 
294     /**
295      * Nominal descriptor representing the constant {@linkplain Boolean#FALSE}
296      * @since 15
297      */
298     public static final DynamicConstantDesc<Boolean> FALSE
299             = DynamicConstantDesc.ofNamed(BSM_GET_STATIC_FINAL,
300                                           "FALSE", CD_Boolean, CD_Boolean);
301 
302     /**
303      * The special name of instance initialization methods, {@value}. An instance
304      * initialization method has this special name and is {@code void}.
305      *
306      * @jvms 2.9.1 Instance Initialization Methods
307      * @since 21
308      */
309     public static final String INIT_NAME = "<init>";
310 









311     /**
312      * The special name of class initialization methods, {@value}. A class
313      * initialization method has this special name, {@link java.lang.reflect.AccessFlag#STATIC
314      * ACC_STATIC} flag set, is {@link #MTD_void void} and takes no arguments.
315      *
316      * @jvms 2.9.2 Class Initialization Methods
317      * @since 21
318      */
319     public static final String CLASS_INIT_NAME = "<clinit>";
320 
321     /**
322      * Nominal descriptor representing the method descriptor {@code ()V},
323      * taking no argument and returning {@code void}.
324      *
325      * @since 21
326      */
327     public static final MethodTypeDesc MTD_void = MethodTypeDesc.of(CD_void);
328 
329     static final DirectMethodHandleDesc MHD_METHODHANDLE_ASTYPE
330             = MethodHandleDesc.ofMethod(Kind.VIRTUAL, CD_MethodHandle, "asType",

291             = DynamicConstantDesc.ofNamed(BSM_GET_STATIC_FINAL,
292                                           "TRUE", CD_Boolean, CD_Boolean);
293 
294     /**
295      * Nominal descriptor representing the constant {@linkplain Boolean#FALSE}
296      * @since 15
297      */
298     public static final DynamicConstantDesc<Boolean> FALSE
299             = DynamicConstantDesc.ofNamed(BSM_GET_STATIC_FINAL,
300                                           "FALSE", CD_Boolean, CD_Boolean);
301 
302     /**
303      * The special name of instance initialization methods, {@value}. An instance
304      * initialization method has this special name and is {@code void}.
305      *
306      * @jvms 2.9.1 Instance Initialization Methods
307      * @since 21
308      */
309     public static final String INIT_NAME = "<init>";
310 
311     /**
312      * The special name of value object factory methods, {@value}. A value
313      * object factory method has this special name and is {@code void}.
314      *
315      * TODO jvms ref
316      * @since 21
317      */
318     public static final String VNEW_NAME = "<vnew>";
319 
320     /**
321      * The special name of class initialization methods, {@value}. A class
322      * initialization method has this special name, {@link java.lang.reflect.AccessFlag#STATIC
323      * ACC_STATIC} flag set, is {@link #MTD_void void} and takes no arguments.
324      *
325      * @jvms 2.9.2 Class Initialization Methods
326      * @since 21
327      */
328     public static final String CLASS_INIT_NAME = "<clinit>";
329 
330     /**
331      * Nominal descriptor representing the method descriptor {@code ()V},
332      * taking no argument and returning {@code void}.
333      *
334      * @since 21
335      */
336     public static final MethodTypeDesc MTD_void = MethodTypeDesc.of(CD_void);
337 
338     static final DirectMethodHandleDesc MHD_METHODHANDLE_ASTYPE
339             = MethodHandleDesc.ofMethod(Kind.VIRTUAL, CD_MethodHandle, "asType",
< prev index next >