Lines Matching refs:cname
78 String cname = mangleClassName(clazz.getQualifiedName().toString());
82 generateDeclsForClass(pw, clazz, cname);
90 TypeElement clazz, String cname)
104 pw.println("#ifndef _Included_" + cname);
105 pw.println("#define _Included_" + cname);
111 structSectionForClass(pw, clazz, cname);
112 methodSectionForClass(pw, clazz, cname);
117 String cname = mangleClassName(clazzname);
118 if (!doneHandleTypes.contains(cname)) {
119 doneHandleTypes.add(cname);
121 pw.println("#ifndef DEFINED_" + cname);
122 pw.println(" #define DEFINED_" + cname);
123 pw.println(" GEN_HANDLE_TYPES(" + cname + ");");
195 TypeElement jclazz, String cname) {
199 if (cname.equals("java_lang_Object")) {
208 pw.println("struct " + cname + " {");
210 pw.print(fieldDefs(jclazz, cname));
240 String cname, boolean padWord) {
242 String fieldDef = addStructMember(field, cname, padWord);
263 int offset, String cname, boolean padWord) {
270 if (twoWords && doField(res, field, cname, first && padWord)) {
277 String fieldDefs(TypeElement clazz, String cname) {
278 FieldDefsRes res = fieldDefs(clazz, cname, true);
282 FieldDefsRes fieldDefs(TypeElement clazz, String cname,
293 fieldDefs(superclazz, cname, false),
306 offset = doTwoWordFields(res, clazz, offset, cname, false);
314 if (doField(res, field, cname, false)) offset += 4;
321 offset = doTwoWordFields(res, clazz, offset, cname, true);
329 protected String addStructMember(VariableElement member, String cname,
334 res = addStaticStructMember(member, cname);
353 protected String addStaticStructMember(VariableElement field, String cname) {
367 String cn = cname + "_" + field.getSimpleName();
411 TypeElement clazz, String cname)
413 String methods = methodDecls(clazz, cname);
427 protected String methodDecls(TypeElement clazz, String cname)
433 res = res + methodDecl(method, clazz, cname);
439 TypeElement clazz, String cname)
453 res = "JNIEXPORT " + jniType(retType) + " JNICALL" + lineSep + jniMethodName(method, cname, longName)
454 + "(JNIEnv *, " + cRcvrDecl(method, cname);
483 protected final String jniMethodName(ExecutableElement method, String cname,
486 String res = "Java_" + cname + "_" + method.getSimpleName();
618 protected final String cRcvrDecl(Element field, String cname) {