
com.flipboard.goldengate.Util Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
Generate type safe java bridge into webview javascript code
The newest version!
package com.flipboard.goldengate;
import javax.lang.model.element.Element;
/**
* Created by emilsjolander on 2/2/15.
*/
public class Util {
public static boolean isCallback(Element e) {
return Processor.instance.typeUtils.isSubtype(
Processor.instance.typeUtils.erasure(e.asType()),
Processor.instance.typeUtils.erasure(Processor.instance.elementUtils.getTypeElement(Callback.class.getCanonicalName()).asType())
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy