module JDumpBasics:sig..end
Convert some data from JBasics to strings or print them on the
provided output.
val class_name : ?jvm:bool -> JBasics.class_name -> stringclass_name ~jvm cn returns the fully qualified class name as a
string. If jvm is false (default value): with dots between
packages and between package name and class name. If jvm is
true returns the JVM representation.
val basic_type : ?jvm:bool -> JBasics.java_basic_type -> stringbasic_type ~jvm t, if jvm is false (default value), returns the
Java representation of the type t (e.g. basic_type `Int
returns "int"). If jvm is true: returns the JVM
representation of type t (e.g. type2shortstring `Int
returns "I").
val object_value_signature : ?jvm:bool -> JBasics.object_type -> stringobject_value_signature ~jvm s, if jvm is false (by
default), returns the Java representation of type s. If jvm
is true returns the JVM representation of type s.
val value_signature : ?jvm:bool -> JBasics.value_type -> stringvalue_signature ~jvm s, if jvm is false (default value),
returns the Java representation of the type t. If jvm is
true: returns the JVM representation of type t
val type2shortstring : JBasics.value_type -> stringval rettype2shortstring : ?jvm:bool -> JBasics.value_type option -> stringrettype2shortstring t, if jvm is true (default value),
returns the JVM representation of the return type t (e.g.
rettype2shortstring None returns "V"). If jvm is false
returns the Java representation of type t (e.g.
rettype2shortstring None returns "void").
val arraytype2shortstring : JBasics.jvm_array_type -> stringarraytype2shortstring t return the JVM representation of the
array type t (e.g. arraytype2shortstring `Object returns
"A").
val method_signature : ?jvm:bool -> string -> JBasics.method_descriptor -> stringmethod_signature mn md, where mn is a method name and md a
method descriptor, returns the method signature as in Java ( e.g. "bool equals(java.lang.Object)").
val signature : string -> JBasics.descriptor -> stringsignature name des returns a string corresponding to the field
or method name with the descriptor des. (See
JDumpBasics.method_signature)
val jvm_basic_type : [< `Double | `Float | `Int | `Int2Bool | `Long ] -> charjvm_basic_type t returns the lowercase character that
corresponds to the type t.
val jvm_array_type : JBasics.jvm_array_type -> charjvm_array_type t returns the lowercase character that
corresponds to the type t.
val java_basic_type : JBasics.java_basic_type -> charjava_basic_type t returns the lowercase character that
corresponds to the type t.
val method_handle_kind : JBasicsLow.method_handle_kind -> stringmethod_handle_kind k returns the string that corresponds
to the method handle kind k.
val dump_constant : 'a JLib.IO.output -> JBasics.constant -> unitdump_constant ch cst prints on ch the constant pool constant
cst of the.
val dump_bootstrap_argument : 'a JLib.IO.output -> JBasics.bootstrap_argument -> unitdump_bootstrap_argument b prints on ch the bootstrap argument b.
val dump_bootstrap_method : 'a JLib.IO.output -> JBasics.bootstrap_method -> unitdump_bootstrap_method m prints on ch the bootstrap method m.
val dump_constantpool : 'a JLib.IO.output -> JBasics.constant array -> unitdump_constantpool ch pool print on ch the constant pool
pool.
val dump_verification_type : JBasics.verification_type -> string
val dump_stackmap : 'a JLib.IO.output -> JBasics.stackmap_frame -> unitdump_stackmap ch sm prints on ch the stackmap sm.
val dump_exc : 'a JLib.IO.output -> 'b -> JCode.exception_handler -> unitdump_exc ch _ ex prints on ch the exception handler
declaration ex.
val constant_attribute : JClass.constant_attribute -> string