jvm-binary-0.0.2: A library for reading Java class-files

Copyright(c) Christian Gram Kalhauge 2017
LicenseMIT
Maintainerkalhuage@cs.ucla.edu
Safe HaskellNone
LanguageHaskell2010

Language.JVM.Method

Contents

Description

 

Synopsis

Documentation

data Method Source #

A Method in the class-file, as described here.

Instances

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.