Examples of ReferenceBinding


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding

        tvbs = makeTypeVariableBindingsFromAJTypeVariables(member.getTypeVariables());
        // QQQ do we need to bother fixing up the declaring element here?
      }
    }

    ReferenceBinding declaringType = (ReferenceBinding) makeTypeBinding(member.getDeclaringType());

    // If there are aliases, place them in the map
    if (aliases != null && aliases.size() != 0 && declaringType.typeVariables() != null
        && declaringType.typeVariables().length != 0) {
      int i = 0;
      ReferenceBinding aliasTarget = (ReferenceBinding) makeTypeBinding(aliasTargetType);
      if (aliasTarget.isRawType()) {
        aliasTarget = ((RawTypeBinding) aliasTarget).genericType();
      }
      for (Iterator iter = aliases.iterator(); iter.hasNext();) {
        String element = (String) iter.next();
        typeVariableToTypeBinding.put(element, aliasTarget.typeVariables()[i++]);
      }
    }

    currentType = declaringType;
    MethodBinding mb = new MethodBinding(member.getModifiers(), member.getName().toCharArray(),
View Full Code Here

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

      String typeName) {
    /*
     * This causes the compiler to find the additional type, possibly winding
     * its back to ask for the compilation unit from the source oracle.
     */
    ReferenceBinding type = resolvePossiblyNestedType(typeName);

    // Sanity check rebind results.
    if (type == null) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName + "' could not be found");
      return;
    }
    if (!type.isClass()) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName + "' must be a class");
      return;
    }
    if (type.isAbstract()) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName + "' cannot be abstract");
      return;
    }
    if (type.isNestedType() && !type.isStatic()) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName
              + "' cannot be a non-static nested class");
      return;
    }
    if (type.isLocalType()) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName + "' cannot be a local class");
      return;
    }
    // Look for a noArg ctor.
    MethodBinding noArgCtor = type.getExactConstructor(TypeBinding.NO_PARAMETERS);
    if (noArgCtor == null) {
      FindDeferredBindingSitesVisitor.reportRebindProblem(site,
          "Rebind result '" + typeName
              + "' has no default (zero argument) constructors");
      return;
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.