feat[ClassFlag]: comments on meaning
This commit is contained in:
parent
c1d4f93f0e
commit
603e9b1d53
1 changed files with 9 additions and 9 deletions
|
@ -59,15 +59,15 @@ newtype instance ClassFlags Parse = ClassFlags (Flags ClassFlag)
|
||||||
deriving Extractable via Generically (ClassFlags Parse)
|
deriving Extractable via Generically (ClassFlags Parse)
|
||||||
|
|
||||||
data ClassFlag
|
data ClassFlag
|
||||||
= Public
|
= Public -- may be accessed from outside the package
|
||||||
| Final
|
| Final -- no subclasses allowed
|
||||||
| Super
|
| Super -- treat superclass methods special when using InvokeSpecial
|
||||||
| Interface
|
| Interface -- is an interface
|
||||||
| Abstract
|
| Abstract -- abstract, must not be instantiated
|
||||||
| Synthetic
|
| Synthetic -- not present in source code
|
||||||
| Annotation
|
| Annotation -- is annotation interface
|
||||||
| Enum
|
| Enum -- enumerated instances
|
||||||
| Module
|
| Module -- module, not a class
|
||||||
deriving (Show, Eq, Ord, Enum, Bounded)
|
deriving (Show, Eq, Ord, Enum, Bounded)
|
||||||
|
|
||||||
instance FlagMask ClassFlag where
|
instance FlagMask ClassFlag where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue