| Copyright | (c) Christian Gram Kalhauge 2017 |
|---|---|
| License | MIT |
| Maintainer | kalhuage@cs.ucla.edu |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.JVM.Method
Contents
Description
- data Method = Method {}
- mAccessFlags :: Method -> Set MAccessFlag
- mAttributes :: Method -> [Attribute]
- mName :: ConstantPool -> Method -> Maybe Text
- mDescriptor :: ConstantPool -> Method -> Maybe Text
- mCode :: ConstantPool -> Method -> Maybe (Either String Code)
- mExceptions :: ConstantPool -> Method -> Maybe (Either String Exceptions)
Documentation
mAccessFlags :: Method -> Set MAccessFlag Source #
Unpack the BitSet and get the AccessFlags as a Set.
mAttributes :: Method -> [Attribute] Source #
Unpack the SizedList and get the attributes as a List.
mName :: ConstantPool -> Method -> Maybe Text Source #
Lookup the name of the method in the ConstantPool.
mDescriptor :: ConstantPool -> Method -> Maybe Text Source #
Lookup the descriptor of the method in the ConstantPool.
Attributes
mCode :: ConstantPool -> Method -> Maybe (Either String Code) Source #
Fetch the Code attribute, if any.
There can only one be one code attribute on a method.
mExceptions :: ConstantPool -> Method -> Maybe (Either String Exceptions) Source #
Fetch the Exceptions attribute.
There can only one be one exceptions attribute on a method.