Package jnr.ffi.provider.jffi
Class CodegenUtils
java.lang.Object
jnr.ffi.provider.jffi.CodegenUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Creates a dotted class name from a path/package name.static String
Creates a class identifier of form Labc/abc;, from a Class.static String
getAnnotatedBindingClassName
(String javaMethodName, String typeName, boolean isStatic, int required, int optional, boolean multi, boolean framed) static String
Creates a human-readable representation, from a Class.static String
Creates a class path name, from a Class.static String
Creates a class path name, from a class name.static Class[]
static Class[]
static Class[]
static String
static String
prettyParams
(Class... params) static String
Create a method signature from the given param types and return values.static String
static String
static String
static void
visitAnnotationFields
(org.objectweb.asm.AnnotationVisitor visitor, Map<String, Object> fields)
-
Constructor Details
-
CodegenUtils
public CodegenUtils()
-
-
Method Details
-
c
Creates a dotted class name from a path/package name.- Parameters:
p
- The path/package name.- Returns:
- The dotted class name.
-
p
Creates a class path name, from a Class.- Parameters:
n
- A class.- Returns:
- The class path name.
-
p
Creates a class path name, from a class name.- Parameters:
n
- A class name.- Returns:
- A class path name.
-
ci
Creates a class identifier of form Labc/abc;, from a Class.- Parameters:
n
- A class.- Returns:
- The class identifier.
-
human
Creates a human-readable representation, from a Class.- Parameters:
n
- A class.- Returns:
- A human-readable representation.
-
sig
Create a method signature from the given param types and return values.- Parameters:
retval
- The return value class.params
- The parameters.- Returns:
- A method signature.
-
sig
-
sigParams
-
sigParams
-
pretty
-
prettyParams
-
params
-
params
-
params
-
getAnnotatedBindingClassName
-
visitAnnotationFields
-