From: Ilya Portnov Date: Mon, 13 Jun 2011 16:43:53 +0000 (+0600) Subject: Update docs. X-Git-Tag: v0.3.2~50 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hs-java.git;a=commitdiff_plain;h=09a5e281d1f60a9484689a4c0cb302f645a535d3 Update docs. --- diff --git a/JVM/Assembler.hs b/JVM/Assembler.hs index d67f31c..cc886ae 100644 --- a/JVM/Assembler.hs +++ b/JVM/Assembler.hs @@ -6,6 +6,7 @@ module JVM.Assembler (Instruction (..), ArrayType (..), + CodeException (..), Code (..), IMM (..), CMP (..) diff --git a/JVM/ClassFile.hs b/JVM/ClassFile.hs index ef4916c..baac436 100644 --- a/JVM/ClassFile.hs +++ b/JVM/ClassFile.hs @@ -7,8 +7,9 @@ module JVM.ClassFile FieldInfo (..), MethodInfo (..), AttributeInfo (..), - FieldType, - FieldSignature, MethodSignature (..), ReturnSignature (..) + FieldType (..), + FieldSignature, MethodSignature (..), ReturnSignature (..), + ArgumentSignature (..) ) where @@ -98,8 +99,8 @@ data FieldType = | LongInt -- ^ J | ShortInt -- ^ S | BoolType -- ^ Z - | ObjectType String -- ^ L - | Array (Maybe Int) FieldType -- ^ [ + | ObjectType String -- ^ L @{class name}@ + | Array (Maybe Int) FieldType -- ^ @[{type}@ deriving (Eq) instance Show FieldType where diff --git a/JVM/Types.hs b/JVM/Types.hs index f54a8ba..18f57ea 100644 --- a/JVM/Types.hs +++ b/JVM/Types.hs @@ -117,17 +117,17 @@ type Access = S.Set AccessFlag -- | Access flags. Used for classess, methods, variables. data AccessFlag = - ACC_PUBLIC -- 0x0001 Visible for all - | ACC_PRIVATE -- 0x0002 Visible only for defined class - | ACC_PROTECTED -- 0x0004 Visible only for subclasses - | ACC_STATIC -- 0x0008 Static method or variable - | ACC_FINAL -- 0x0010 No further subclassing or assignments - | ACC_SYNCHRONIZED -- 0x0020 Uses monitors - | ACC_VOLATILE -- 0x0040 Could not be cached - | ACC_TRANSIENT -- 0x0080 - | ACC_NATIVE -- 0x0100 Implemented in other language - | ACC_INTERFACE -- 0x0200 Class is interface - | ACC_ABSTRACT -- 0x0400 + ACC_PUBLIC -- ^ 0x0001 Visible for all + | ACC_PRIVATE -- ^ 0x0002 Visible only for defined class + | ACC_PROTECTED -- ^ 0x0004 Visible only for subclasses + | ACC_STATIC -- ^ 0x0008 Static method or variable + | ACC_FINAL -- ^ 0x0010 No further subclassing or assignments + | ACC_SYNCHRONIZED -- ^ 0x0020 Uses monitors + | ACC_VOLATILE -- ^ 0x0040 Could not be cached + | ACC_TRANSIENT -- ^ 0x0080 + | ACC_NATIVE -- ^ 0x0100 Implemented in other language + | ACC_INTERFACE -- ^ 0x0200 Class is interface + | ACC_ABSTRACT -- ^ 0x0400 deriving (Eq, Show, Ord) -- | Generic attribute