Examples of syntheticEnclosingInstanceTypes()


Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

      if (superClass.isNestedType() && !superClass.isStatic()) {
        ReferenceBinding myBinding = currentClassScope.referenceType().binding;
        ReferenceBinding superBinding = superClass;

        // enclosing types
        if (superBinding.syntheticEnclosingInstanceTypes() != null) {
          JExpression qualifier = dispProcessExpression(x.qualification);
          for (ReferenceBinding arg : superBinding.syntheticEnclosingInstanceTypes()) {
            JClassType classType = (JClassType) typeMap.get(arg);
            if (qualifier == null) {
              /*
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

        ReferenceBinding superBinding = superClass;

        // enclosing types
        if (superBinding.syntheticEnclosingInstanceTypes() != null) {
          JExpression qualifier = dispProcessExpression(x.qualification);
          for (ReferenceBinding arg : superBinding.syntheticEnclosingInstanceTypes()) {
            JClassType classType = (JClassType) typeMap.get(arg);
            if (qualifier == null) {
              /*
               * Got to be one of my params; it would be illegal to use a this
               * ref at this moment-- we would most likely be passing in a
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

    int argPosition = 0;

    ReferenceBinding declaringClass = b.declaringClass;
    if (declaringClass.isNestedType() && !declaringClass.isStatic()) {
      // add synthetic args for outer this
      if (declaringClass.syntheticEnclosingInstanceTypes() != null) {
        for (ReferenceBinding argType : declaringClass.syntheticEnclosingInstanceTypes()) {
          createParameter(info, argType, method, argPosition++);
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

    ReferenceBinding declaringClass = b.declaringClass;
    if (declaringClass.isNestedType() && !declaringClass.isStatic()) {
      // add synthetic args for outer this
      if (declaringClass.syntheticEnclosingInstanceTypes() != null) {
        for (ReferenceBinding argType : declaringClass.syntheticEnclosingInstanceTypes()) {
          createParameter(info, argType, method, argPosition++);
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

      // Take into account the synthetic argument names
      // This tracks JLS8, paragraph 8.8.9
      boolean anonymousWithLocalSuper = declaringClass.isAnonymousType() && declaringClass.superclass().isLocalType();
      boolean anonymousWithNestedSuper = declaringClass.isAnonymousType() && declaringClass.superclass().isNestedType();
      boolean isImplicitlyDeclared = ((! declaringClass.isPrivate()) || declaringClass.isAnonymousType()) && !anonymousWithLocalSuper;
      ReferenceBinding[] syntheticArgumentTypes = declaringClass.syntheticEnclosingInstanceTypes();
      if (syntheticArgumentTypes != null) {
        for (int i = 0, count = syntheticArgumentTypes.length; i < count; i++) {
          // This behaviour tracks JLS 15.9.5.1
          // This covers that the parameter ending up in a nested class must be mandated "on the way in", even if it
          // isn't the first. The practical relevance of this is questionable, since the constructor call will be
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

      // Synthetic args for inner classes
      ReferenceBinding targetBinding = (ReferenceBinding) b.declaringClass.erasure();
      boolean isNested = JdtUtil.isInnerClass(targetBinding);
      if (isNested) {
        // Synthetic this args for inner classes
        if (targetBinding.syntheticEnclosingInstanceTypes() != null) {
          ReferenceBinding checkedTargetType =
              targetBinding.isAnonymousType() ? (ReferenceBinding) targetBinding.superclass()
                  .erasure() : targetBinding;
          ReferenceBinding targetEnclosingType = checkedTargetType.enclosingType();
          for (ReferenceBinding argType : targetBinding.syntheticEnclosingInstanceTypes()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

    } else {
      if (this.isConstructorReference()) {
        ReferenceBinding[] enclosingInstances = Binding.UNINITIALIZED_REFERENCE_TYPES;
        if (this.receiverType.isNestedType()) {
          ReferenceBinding nestedType = (ReferenceBinding) this.receiverType;
          if ((enclosingInstances = nestedType.syntheticEnclosingInstanceTypes()) != null) {
            int length = enclosingInstances.length;
            argumentsSize = length;
            for (int i = 0 ; i < length; i++) {
              ReferenceBinding syntheticArgumentType = enclosingInstances[i];
              buffer.append(syntheticArgumentType.signature());
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

      if (superClass.isNestedType() && !superClass.isStatic()) {
        ReferenceBinding myBinding = currentClassScope.referenceType().binding;
        ReferenceBinding superBinding = superClass;

        // enclosing types
        if (superBinding.syntheticEnclosingInstanceTypes() != null) {
          JExpression qualifier = dispProcessExpression(x.qualification);
          for (ReferenceBinding arg : superBinding.syntheticEnclosingInstanceTypes()) {
            JClassType classType = (JClassType) typeMap.get(arg);
            if (qualifier == null) {
              /*
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.syntheticEnclosingInstanceTypes()

        ReferenceBinding superBinding = superClass;

        // enclosing types
        if (superBinding.syntheticEnclosingInstanceTypes() != null) {
          JExpression qualifier = dispProcessExpression(x.qualification);
          for (ReferenceBinding arg : superBinding.syntheticEnclosingInstanceTypes()) {
            JClassType classType = (JClassType) typeMap.get(arg);
            if (qualifier == null) {
              /*
               * Got to be one of my params; it would be illegal to use a this
               * ref at this moment-- we would most likely be passing in a
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.