package javalib

  1. Overview
  2. Docs
type class_name
type method_signature
type field_signature
type class_field_signature
type class_method_signature
type other_num = [
  1. | `Double
  2. | `Float
  3. | `Long
]
type jvm_basic_type = [
  1. | `Double
  2. | `Float
  3. | `Int2Bool
  4. | `Long
]
type jvm_type = [
  1. | `Double
  2. | `Float
  3. | `Int2Bool
  4. | `Long
  5. | `Object
]
type jvm_array_type = [
  1. | `ByteBool
  2. | `Char
  3. | `Double
  4. | `Float
  5. | `Int
  6. | `Long
  7. | `Object
  8. | `Short
]
type jvm_return_type = [
  1. | `Double
  2. | `Float
  3. | `Int2Bool
  4. | `Long
  5. | `Object
  6. | `Void
]
type java_basic_type = [
  1. | `Bool
  2. | `Byte
  3. | `Char
  4. | `Double
  5. | `Float
  6. | `Int
  7. | `Long
  8. | `Short
]
type method_handle_kind = [
  1. | `GetField
  2. | `GetStatic
  3. | `InvokeInterface
  4. | `InvokeSpecial
  5. | `InvokeStatic
  6. | `InvokeVirtual
  7. | `NewInvokeSpecial
  8. | `PutField
  9. | `PutStatic
]
type object_type =
  1. | TClass of class_name
  2. | TArray of value_type
and value_type =
  1. | TBasic of java_basic_type
  2. | TObject of object_type
type version = {
  1. major : int;
  2. minor : int;
}
val java_lang_object : class_name
val default_native_throwable : class_name list
val make_cn : string -> class_name
val cn_hash : class_name -> int
val cn_name : class_name -> string
val cn_simple_name : class_name -> string
val cn_package : class_name -> string list
val cn_compare : class_name -> class_name -> int
val cn_equal : class_name -> class_name -> bool
val clinit_signature : method_signature
val make_ms : string -> value_type list -> value_type option -> method_signature
val ms_hash : method_signature -> int
val ms_name : method_signature -> string
val ms_args : method_signature -> value_type list
val ms_rtype : method_signature -> value_type option
val ms_compare : method_signature -> method_signature -> int
val ms_equal : method_signature -> method_signature -> bool
val make_fs : string -> value_type -> field_signature
val fs_hash : field_signature -> int
val fs_name : field_signature -> string
val fs_type : field_signature -> value_type
val fs_compare : field_signature -> field_signature -> int
val fs_equal : field_signature -> field_signature -> bool
val cfs_compare : class_field_signature -> class_field_signature -> int
val cfs_equal : class_field_signature -> class_field_signature -> bool
val cfs_hash : class_field_signature -> int
type bootstrap_method_index = int
type method_descriptor = value_type list * value_type option
type descriptor =
  1. | SValue of value_type
  2. | SMethod of method_descriptor
type jstr
val make_jstr : string -> jstr
val jstr_pp : jstr -> string
val jstr_raw : jstr -> string
type constant_value =
  1. | ConstString of jstr
  2. | ConstInt of int32
  3. | ConstFloat of float
  4. | ConstLong of int64
  5. | ConstDouble of float
  6. | ConstClass of object_type
type constant =
  1. | ConstValue of constant_value
  2. | ConstField of class_name * field_signature
  3. | ConstMethod of object_type * method_signature
  4. | ConstInterfaceMethod of class_name * method_signature
  5. | ConstMethodType of method_descriptor
  6. | ConstMethodHandle of method_handle_kind * constant
  7. | ConstInvokeDynamic of bootstrap_method_index * method_signature
  8. | ConstNameAndType of string * descriptor
  9. | ConstStringUTF8 of string
  10. | ConstUnusable
type verification_type =
  1. | VTop
  2. | VInteger
  3. | VFloat
  4. | VDouble
  5. | VLong
  6. | VNull
  7. | VUninitializedThis
  8. | VObject of object_type
  9. | VUninitialized of int
type stackmap = int * verification_type list * verification_type list
exception No_class_found of string
exception Class_structure_error of string
type element_value =
  1. | EVCstByte of int
  2. | EVCstChar of int
  3. | EVCstInt of int32
  4. | EVCstShort of int
  5. | EVCstBoolean of int
  6. | EVCstDouble of float
  7. | EVCstFloat of float
  8. | EVCstLong of int64
  9. | EVCstString of string
  10. | EVEnum of class_name * string
  11. | EVClass of value_type option
  12. | EVAnnotation of annotation
  13. | EVArray of element_value list
and annotation = {
  1. kind : class_name;
  2. element_value_pairs : (string * element_value) list;
}
module ClassMap : sig ... end
module MethodMap : sig ... end
module FieldMap : sig ... end
module ClassFieldMap : sig ... end
module ClassMethodMap : sig ... end
module ClassSet : sig ... end
module MethodSet : sig ... end
module FieldSet : sig ... end
module ClassFieldSet : sig ... end
module ClassMethodSet : sig ... end
module ClassMethodMaptoSet : sig ... end
val set_permissive : bool -> unit
val get_permissive : unit -> bool
OCaml

Innovation. Community. Security.