public class EnumConstantClassNode
extends InnerClassNode
Represents the anonymous inner class for an enum constant. This subtype is needed so that EnumVisitor can differentiate between the scenarios when an InnerClassNode represents anonymous inner class for an enum constant versus an enum class defined within another class.
| Fields inherited from class | Fields |
|---|---|
class ClassNode |
EMPTY_ARRAY, SUPER, THIS, clazz, isPrimaryNode, lazyInitLock |
| Constructor and description |
|---|
EnumConstantClassNode(ClassNode outerClass, String name, ClassNode superClass)Creates the anonymous class of an enum constant. |
EnumConstantClassNode(ClassNode outerClass, String name, int modifiers, ClassNode superClass)Creates the anonymous class of an enum constant with caller-supplied modifiers. |
Creates the anonymous class of an enum constant. The class is
ACC_ENUM | ACC_FINAL and extends superClass.
outerClass - the enum that declares the constantname - the binary name of the anonymous classsuperClass - the enum type this constant class extendsCreates the anonymous class of an enum constant with caller-supplied modifiers. Unlike EnumConstantClassNode(ClassNode, String, ClassNode), the modifiers are passed through unchanged.
outerClass - the enum that declares the constantname - the binary name of the anonymous classmodifiers - the access flags stored on the classsuperClass - the enum type this constant class extendsCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.