feat[ClassFlag]: comments on meaning

This commit is contained in:
vegowotenks 2025-08-20 17:27:10 +02:00
parent c1d4f93f0e
commit 603e9b1d53

View file

@ -59,15 +59,15 @@ newtype instance ClassFlags Parse = ClassFlags (Flags ClassFlag)
deriving Extractable via Generically (ClassFlags Parse)
data ClassFlag
= Public
| Final
| Super
| Interface
| Abstract
| Synthetic
| Annotation
| Enum
| Module
= Public -- may be accessed from outside the package
| Final -- no subclasses allowed
| Super -- treat superclass methods special when using InvokeSpecial
| Interface -- is an interface
| Abstract -- abstract, must not be instantiated
| Synthetic -- not present in source code
| Annotation -- is annotation interface
| Enum -- enumerated instances
| Module -- module, not a class
deriving (Show, Eq, Ord, Enum, Bounded)
instance FlagMask ClassFlag where