Copyright | (c) Christian Gram Kalhauge 2017 |
---|---|
License | MIT |
Maintainer | kalhuage@cs.ucla.edu |
Safe Haskell | None |
Language | Haskell2010 |
- data Method r = Method {
- mAccessFlags' :: !(BitSet16 MAccessFlag)
- mName :: !(Ref Text r)
- mDescriptor :: !(Ref MethodDescriptor r)
- mAttributes :: !(Attributes MethodAttributes r)
- mAccessFlags :: Method r -> Set MAccessFlag
- data MethodAttributes r = MethodAttributes {
- maCode :: [Code r]
- maExceptions :: [Exceptions r]
- maSignatures :: [Signature r]
- maOthers :: [Attribute r]
- mCode :: Method High -> Maybe (Code High)
- mExceptions' :: Method High -> Maybe (Exceptions High)
- mExceptions :: Method High -> [ClassName]
- mSignature :: Method High -> Maybe (Signature High)
Documentation
A Method in the class-file, as described here.
Method | |
|
Staged Method Source # | |
Eq (Method High) Source # | |
Eq (Method Low) Source # | |
Ord (Method Low) Source # | |
Show (Method High) Source # | |
Show (Method Low) Source # | |
Generic (Method High) Source # | |
Generic (Method Low) Source # | |
Binary (Method Low) Source # | |
NFData (Method High) Source # | |
NFData (Method Low) Source # | |
type Rep (Method High) Source # | |
type Rep (Method Low) Source # | |
mAccessFlags :: Method r -> Set MAccessFlag Source #
Unpack the BitSet and get the AccessFlags as a Set.
Attributes
data MethodAttributes r Source #
MethodAttributes | |
|
Eq (MethodAttributes High) Source # | |
Eq (MethodAttributes Low) Source # | |
Ord (MethodAttributes Low) Source # | |
Show (MethodAttributes High) Source # | |
Show (MethodAttributes Low) Source # | |
Generic (MethodAttributes High) Source # | |
Generic (MethodAttributes Low) Source # | |
NFData (MethodAttributes High) Source # | |
NFData (MethodAttributes Low) Source # | |
type Rep (MethodAttributes High) Source # | |
type Rep (MethodAttributes Low) Source # | |
mCode :: Method High -> Maybe (Code High) Source #
Fetch the Code
attribute, if any.
There can only be one code attribute in a method.
mExceptions' :: Method High -> Maybe (Exceptions High) Source #
Fetch the Exceptions
attribute.
There can only be one exceptions attribute in a method.
mExceptions :: Method High -> [ClassName] Source #
Fetches the Exceptions
attribute, but turns it into an list of exceptions.
If no exceptions field where found the empty list is returned