Procname.Java
Type of java procedure names.
include Ppx_compare_lib.Comparable.S with type t := t
val compare : t Base__Ppx_compare_lib.compare
include Ppx_compare_lib.Equal.S with type t := t
val equal : t Base__Ppx_compare_lib.equal
val get_class_name : t -> string
Return the fully qualified class name of a java procedure name (package + class name)
val get_class_type_name : t -> Typ.Name.t
Return the class name as a typename of a java procedure name.
val get_package : t -> string option
Return the package name of a java procedure name.
val get_method : t -> string
Return the method name of a java procedure name.
Return the return type of pname_java
. return Tvoid if there's no return type
val is_constructor : t -> bool
Whether the method is constructor
val is_access_method : t -> bool
Check if the procedure name is an acess method (e.g. access$100 used to access private members from a nested class.
val is_autogen_method : t -> bool
Check if the procedure name is of an auto-generated/synthetic method.
val is_close : t -> bool
Check if the method name is "close".
val is_static : t -> bool
Check if the java procedure is static.
val is_vararg : t -> bool
Check if the proc name has the type of a java vararg. Note: currently only checks that the last argument has type Object.
val is_generated : t -> bool
Check if the proc name comes from generated code
val is_class_initializer : t -> bool
Check if this is a class initializer.
val get_class_initializer : Typ.Name.t -> t
Given a java class, generate the procname of its static initializer.
val is_external : t -> bool
Check if the method belongs to one of the specified external packages