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
A nominal descriptor for an
 
enum constant.- Since:
- 12
- 
Method SummaryModifier and TypeMethodDescriptionstatic <E extends Enum<E>>
 Enum.EnumDesc<E> Returns a nominal descriptor for the specifiedenumclass and nameMethods declared in class java.lang.constant.DynamicConstantDescbootstrapArgs, bootstrapArgsList, bootstrapMethod, constantName, constantType, equals, hashCode, of, of, ofCanonical, ofNamed, resolveConstantDesc, toString
- 
Method Details- 
ofReturns a nominal descriptor for the specifiedenumclass and name- Type Parameters:
- E- the type of the enum constant
- Parameters:
- enumClass- a- ClassDescdescribing the- enumclass
- constantName- the unqualified name of the enum constant
- Returns:
- the nominal descriptor
- Throws:
- NullPointerException- if any argument is null
- See Java Virtual Machine Specification:
- 
4.2.2 Unqualified Names
- Since:
- 12
 
 
-