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

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

Language.JVM.Attribute.LineNumberTable

Contents

Description

Based on the LineNumberTable Attribute, as documented here.

Synopsis

Documentation

newtype LineNumberTable r Source #

The LineNumberTable is just a mapping from offsets to linenumbers.

Instances
ByteCodeStaged LineNumberTable Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Eq (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Ord (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Show (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Generic (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Associated Types

type Rep (LineNumberTable r) :: Type -> Type #

Binary (LineNumberTable Low) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

NFData (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

Methods

rnf :: LineNumberTable r -> () #

IsAttribute (LineNumberTable Low) Source #

Signature is an Attribute.

Instance details

Defined in Language.JVM.Attribute.LineNumberTable

type Rep (LineNumberTable r) Source # 
Instance details

Defined in Language.JVM.Attribute.LineNumberTable

type Rep (LineNumberTable r) = D1 (MetaData "LineNumberTable" "Language.JVM.Attribute.LineNumberTable" "jvm-binary-0.9.0-9S1OjG3yP2JAIJl8zf6L4B" True) (C1 (MetaCons "LineNumberTable" PrefixI True) (S1 (MetaSel (Just "lineNumberTable") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (IntMap LineNumber))))

Helper functions

linenumber :: Int -> LineNumberTable r -> Maybe LineNumber Source #

Returns the line number of an offset.

linenumber' :: Integral a => a -> LineNumberTable r -> Maybe LineNumber Source #

Returns the line number of an offset. Helper function that also does the conversion from integral to int.