Examples of elementsType()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

  public ITypeBinding getComponentType() {
    if (!this.isArray()) {
      return null;
    }
    ArrayBinding arrayBinding = (ArrayBinding) binding;
    return resolver.getTypeBinding(arrayBinding.elementsType());
  }

  /*
   * @see ITypeBinding#getDeclaredFields()
   */
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

      new String[] {
          new String(argumentType.readableName()),
          new String(varargsType.readableName()),
          new String(method.declaringClass.readableName()),
          typesAsString(method, false),
          new String(varargsType.elementsType().readableName()),
      },
      new String[] {
          new String(argumentType.shortReadableName()),
          new String(varargsType.shortReadableName()),
          new String(method.declaringClass.shortReadableName()),
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

      new String[] {
          new String(argumentType.shortReadableName()),
          new String(varargsType.shortReadableName()),
          new String(method.declaringClass.shortReadableName()),
          typesAsString(method, true),
          new String(varargsType.elementsType().shortReadableName()),
      },
      severity,
      location.sourceStart(),
      location.sourceEnd());
  } else {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

          new String(argumentType.readableName()),
          new String(varargsType.readableName()),
          new String(method.selector),
          typesAsString(method, false),
          new String(method.declaringClass.readableName()),
          new String(varargsType.elementsType().readableName()),
      },
      new String[] {
          new String(argumentType.shortReadableName()),
          new String(varargsType.shortReadableName()),
          new String(method.selector), typesAsString(method, true),
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

      new String[] {
          new String(argumentType.shortReadableName()),
          new String(varargsType.shortReadableName()),
          new String(method.selector), typesAsString(method, true),
          new String(method.declaringClass.shortReadableName()),
          new String(varargsType.elementsType().shortReadableName()),
      },
      severity,
      location.sourceStart(),
      location.sourceEnd());
  }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

          // originalType may be compatible already, but cast mandated
          // to clarify between varargs/non-varargs call
          if (varargsType.dimensions != lastArgType.dimensions()) {
            return;
          }
          if (lastArgType.isCompatibleWith(varargsType.elementsType())
              && lastArgType.isCompatibleWith(varargsType)) {
            return;
          }
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

    }
    assert !(binding instanceof BaseTypeBinding);

    if (binding instanceof ArrayBinding) {
      ArrayBinding arrayBinding = (ArrayBinding) binding;
      JArrayType arrayType = new JArrayType(get(arrayBinding.elementsType()));
      if (arrayType.isExternal()) {
        types.put(key, arrayType);
      } else {
        sourceTypes.put(key, arrayType);
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

    JType type = types.get(key);
    if (type == null) {
      assert !(binding instanceof BaseTypeBinding);
      if (binding instanceof ArrayBinding) {
        ArrayBinding arrayBinding = (ArrayBinding) binding;
        type = new JArrayType(get(arrayBinding.elementsType()));
      } else {
        ReferenceBinding refBinding = (ReferenceBinding) binding;
        type = createType(refBinding);
        if (type instanceof JClassType) {
          ReferenceBinding superclass = refBinding.superclass();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

        default:
          return null;
      }
    } else if (binding instanceof ArrayBinding) {
      ArrayBinding arrayBinding = (ArrayBinding) binding;
      JType elementType = (JType) get(arrayBinding.elementsType(), failOnNull);
      if (elementType == null) {
        return null;
      }
      return program.getTypeArray(elementType);
    } else if (binding instanceof BinaryTypeBinding) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ArrayBinding.elementsType()

          // originalType may be compatible already, but cast mandated
          // to clarify between varargs/non-varargs call
          if (varargsType.dimensions != lastArgType.dimensions()) {
            return;
          }
          if (lastArgType.isCompatibleWith(varargsType.elementsType())
              && lastArgType.isCompatibleWith(varargsType)) {
            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.