DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (31ec81b5d7bb)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// A collection of macros to simplify getting class and method references from Java.

#define initInit() jclass jClass

// note that this also sets jClass
#define getClassGlobalRef(cname) \
    (jClass = AndroidBridge::GetClassGlobalRef(jEnv, cname))

#define getField(fname, ftype) \
    AndroidBridge::GetFieldID(jEnv, jClass, fname, ftype)

#define getMethod(fname, ftype) \
    AndroidBridge::GetMethodID(jEnv, jClass, fname, ftype)

#define getStaticField(fname, ftype) \
    AndroidBridge::GetStaticFieldID(jEnv, jClass, fname, ftype)

#define getStaticMethod(fname, ftype) \
    AndroidBridge::GetStaticMethodID(jEnv, jClass, fname, ftype)