Class 
Use 
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

java.base / java.lang
Class Enum.EnumDesc<E extends Enum<E>>
java.lang.Object
  java.lang.constant.DynamicConstantDesc<E>
      java.lang.Enum.EnumDesc<E>
Type Parameters:
E - the type of the enum constant
All Implemented Interfaces:
ConstantDesc
Enclosing class:
Enum<E extends Enum<E>>

public static final class Enum.EnumDesc<E extends Enum<E>>
extends DynamicConstantDesc<E>
A nominal descriptor for an enum constant.
Since:
12

Method Summary
static <E extends Enum<E>> Enum.EnumDesc<E>
of(ClassDesc enumClass, String constantName)
Returns a nominal descriptor for the specified enum class and name
Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4.
Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.
Methods inherited from class java.lang.constant.DynamicConstantDesc
bootstrapArgs, bootstrapArgsList, bootstrapMethod, constantName, constantType, equals, hashCode, of, of, ofCanonical, ofNamed
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Method Detail
of
public static <E extends Enum<E>> Enum.EnumDesc<E> of
(ClassDesc enumClass,
 String constantName)
Returns a nominal descriptor for the specified enum class and name
Type Parameters:
E - the type of the enum constant
Parameters:
enumClass - a ClassDesc describing the enum class
constantName - the unqualified name of the enum constant
Returns:
the nominal descriptor
Throws:
NullPointerException - if any argument is null
Since:
12

resolveConstantDesc
public E resolveConstantDesc
throws
Description copied from interface: ConstantDesc
Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. The resolution and access control context is provided by the MethodHandles.Lookup parameter. No caching of the resulting value is performed.
Specified by:
resolveConstantDesc in interface ConstantDesc
Overrides:
resolveConstantDesc in class DynamicConstantDesc<E>
Parameters:
lookup - The MethodHandles.Lookup to provide name resolution and access control context
Returns:
the resolved constant value
Throws:
ReflectiveOperationException - if a class, method, or field could not be reflectively resolved in the course of resolution

toString
public String toString
()
Description copied from class: DynamicConstantDesc
Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.
Overrides:
toString in class DynamicConstantDesc<E>
Returns:
A compact textual description of this call site descriptor

 Class 
Use 
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz