Examples of AnnotationBinding


Examples of org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding

  }

  public static JInterfaceType.JsInteropType maybeGetJsInteropType(TypeDeclaration x,
       String jsPrototype, JInterfaceType.JsInteropType interopType) {
    if (x.annotations != null) {
      AnnotationBinding jsInterface = JdtUtil.getAnnotation(x.binding, JSTYPE_CLASS);
      if (jsInterface != null) {
        boolean isNative = JdtUtil.getAnnotationParameterBoolean(jsInterface, "isNative");
        interopType = jsPrototype != null ?
            (isNative ? JDeclaredType.JsInteropType.NATIVE_PROTOTYPE :
            JDeclaredType.JsInteropType.JS_PROTOTYPE) : JDeclaredType.JsInteropType.NO_PROTOTYPE;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding

    return interopType;
  }

  public static String maybeGetJsTypePrototype(TypeDeclaration x, String jsPrototype) {
    if (x.annotations != null) {
      AnnotationBinding jsType = JdtUtil.getAnnotation(x.binding, JSTYPE_CLASS);
      if (jsType != null) {
        jsPrototype = JdtUtil.getAnnotationParameterString(jsType, "prototype");
      }
    }
    return jsPrototype;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding

    }
  }

  public static boolean isClassWideJsExport(TypeDeclaration x) {
    if (x.annotations != null) {
      AnnotationBinding jsExport = JdtUtil.getAnnotation(x.binding, JSEXPORT_CLASS);
      if (jsExport != null) {
        return true;
      }
    }
    return false;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.AnnotationBinding

    return false;
  }

  public static void maybeSetJsNamespace(JDeclaredType type, TypeDeclaration x) {
    if (x.annotations != null) {
      AnnotationBinding jsNamespace = JdtUtil.getAnnotation(x.binding, JSNAMESPACE_CLASS);
      if (jsNamespace != null) {
        type.setJsNamespace(JdtUtil.getAnnotationParameterString(jsNamespace, "value"));
      } else {
        if (type.getSuperClass() != null && x.enclosingType != null) {
          maybeSetJsNamespace(type.getSuperClass(), x.enclosingType);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.