Module Procname.Java
Type of java procedure names.
type kind=|Non_Staticin Java, procedures called with invokevirtual, invokespecial, and invokeinterface
|Staticin Java, procedures called with invokestatic
type t
val to_simplified_string : ?withclass:bool -> t -> stringval constructor_method_name : stringval class_initializer_method_name : stringval replace_method_name : string -> t -> tReplace the method name of an existing java procname.
val get_class_name : t -> stringReturn the fully qualified class name of a java procedure name (package + class name)
val get_class_type_name : t -> Typ.Name.tReturn the class name as a typename of a java procedure name.
val get_simple_class_name : t -> stringReturn the simple class name of a java procedure name (i.e. name without the package info).
val get_package : t -> string optionReturn the package name of a java procedure name.
val get_method : t -> stringReturn the method name of a java procedure name.
val get_return_typ : t -> Typ.tReturn the return type of
pname_java. return Tvoid if there's no return type
val is_constructor : t -> boolWhether the method is constructor
val is_access_method : t -> boolCheck 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 -> boolCheck if the procedure name is of an auto-generated/synthetic method.
val is_anonymous_inner_class_constructor_exn : t -> boolCheck if the procedure name is an anonymous inner class constructor. Throws if it is not a Java type
val is_close : t -> boolCheck if the method name is "close".
val is_static : t -> boolCheck if the java procedure is static.
val is_vararg : t -> boolCheck if the proc name has the type of a java vararg. Note: currently only checks that the last argument has type Object
.
val is_lambda : t -> boolCheck if the proc name comes from a lambda expression
val is_generated : t -> boolCheck if the proc name comes from generated code
val is_class_initializer : t -> boolCheck if this is a class initializer.
val get_class_initializer : Typ.Name.t -> tGiven a java class, generate the procname of its static initializer.
val is_external : t -> boolCheck if the method belongs to one of the specified external packages