Copyright | (c) Christian Gram Kalhauge 2017 |
---|---|
License | MIT |
Maintainer | kalhuage@cs.ucla.edu |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- 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]
- maAnnotationDefault :: [AnnotationDefault r]
- maMethodParameters :: [MethodParameters r]
- maVisibleAnnotations :: [RuntimeVisibleAnnotations r]
- maInvisibleAnnotations :: [RuntimeInvisibleAnnotations r]
- maVisibleParameterAnnotations :: [RuntimeVisibleParameterAnnotations r]
- maInvisibleParameterAnnotations :: [RuntimeInvisibleParameterAnnotations r]
- maVisibleTypeAnnotations :: [RuntimeVisibleTypeAnnotations MethodTypeAnnotation r]
- maInvisibleTypeAnnotations :: [RuntimeInvisibleTypeAnnotations MethodTypeAnnotation r]
- maOthers :: [Attribute r]
- emptyMethodAttributes :: MethodAttributes High
- 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 | |
|
Instances
mAccessFlags :: Method r -> Set MAccessFlag Source #
Unpack the BitSet and get the AccessFlags as a Set.
Attributes
data MethodAttributes r Source #
Instances
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