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

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

Language.JVM.TextSerializable

Description

This module can parse and serialize text to structures

Synopsis

Documentation

class TextSerializable a where Source #

A class that indicates that something can be turned from and to text.

Minimal complete definition

parseText, toBuilder

Methods

parseText :: Parser a Source #

A TypeParse should be parsable

toBuilder :: a -> Builder Source #

A TypeParse should be printable

deserialize :: Text -> Either String a Source #

Parse a type from text

serialize :: a -> Text Source #

Print a type from text

Instances
TextSerializable AbsMethodId Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable AbsFieldId Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable MethodId Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable FieldId Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable FieldDescriptor Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable MethodDescriptor Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable ReturnDescriptor Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable JType Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable JBaseType Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable JRefType Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable ClassName Source # 
Instance details

Defined in Language.JVM.Type

TextSerializable ThrowsSignature Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable TypeParameter Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable TypeVariable Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable Wildcard Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable ClassType Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable ReferenceType Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable TypeSignature Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable FieldSignature Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable MethodSignature Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

TextSerializable ClassSignature Source # 
Instance details

Defined in Language.JVM.Attribute.Signature

deserializeWith :: Parser a -> Text -> Either String a Source #

Parse a type from text

serializeWith :: (a -> Builder) -> a -> Text Source #

Print a type from text