Search in sources :

Example 1 with TypeUtils

use of com.instagram.common.json.annotation.util.TypeUtils in project ig-json-parser by Instagram.

the class JsonAnnotationProcessor method init.

@Override
public synchronized void init(ProcessingEnvironment env) {
    super.init(env);
    mMessager = env.getMessager();
    mElements = env.getElementUtils();
    mTypes = env.getTypeUtils();
    mFiler = env.getFiler();
    mTypeUtils = new TypeUtils(mTypes, mMessager);
    Map<String, String> options = env.getOptions();
    mGenerateSerializers = toBooleanDefaultTrue(options.get("generateSerializers"));
    mOmitSomeMethodBodies = toBooleanDefaultFalse(options.get("com.facebook.buck.java.generating_abi"));
}
Also used : TypeUtils(com.instagram.common.json.annotation.util.TypeUtils)

Aggregations

TypeUtils (com.instagram.common.json.annotation.util.TypeUtils)1