Examples of dimensions()


Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

        }
        if (binding instanceof ArrayBinding) {
          TypeBinding typeBinding = (TypeBinding) binding;
            return new ArrayTypeImpl(_env, this._env.getLookupEnvironment().createArrayType(
                    typeBinding.leafComponentType().erasure(),
                    typeBinding.dimensions()));
        }
        return t;
    }

    /* (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

    public ArrayType getArrayType(TypeMirror componentType) {
        TypeMirrorImpl typeMirrorImpl = (TypeMirrorImpl) componentType;
        TypeBinding typeBinding = (TypeBinding) typeMirrorImpl._binding;
        return new ArrayTypeImpl(_env, this._env.getLookupEnvironment().createArrayType(
                typeBinding.leafComponentType(),
                typeBinding.dimensions() + 1));
    }

    /* (non-Javadoc)
     * @see javax.lang.model.util.Types#getDeclaredType(javax.lang.model.element.TypeElement, javax.lang.model.type.TypeMirror[])
     */
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

          int varargsIndex = paramLength - 1;
          ArrayBinding varargsType = (ArrayBinding) binding.parameters[varargsIndex];
          TypeBinding lastArgType = alternateArgumentTypes[varargsIndex];
          // 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.TypeBinding.dimensions()

      if (binding instanceof ArrayBinding) {
        TypeBinding typeBinding = (TypeBinding) binding;
        return _env.getFactory().newTypeMirror(
            this._env.getLookupEnvironment().createArrayType(
                typeBinding.leafComponentType().erasure(),
                typeBinding.dimensions()));
      }
      return t;
    }

    /* (non-Javadoc)
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

        TypeMirrorImpl typeMirrorImpl = (TypeMirrorImpl) componentType;
        TypeBinding typeBinding = (TypeBinding) typeMirrorImpl._binding;
        return (ArrayType) _env.getFactory().newTypeMirror(
            this._env.getLookupEnvironment().createArrayType(
                typeBinding.leafComponentType(),
                typeBinding.dimensions() + 1));
    }

    /* (non-Javadoc)
     * @see javax.lang.model.util.Types#getDeclaredType(javax.lang.model.element.TypeElement, javax.lang.model.type.TypeMirror[])
     */
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

          int varargsIndex = paramLength - 1;
          ArrayBinding varargsType = (ArrayBinding) binding.parameters[varargsIndex];
          TypeBinding lastArgType = alternateArgumentTypes[varargsIndex];
          // 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.TypeBinding.dimensions()

          TypeBinding lastArgType = argumentTypes[varargsIndex];
          int dimensions;
          if (lastArgType == TypeBinding.NULL) {
            if (!(varargsType.leafComponentType().isBaseType() && varargsType.dimensions() == 1))
              scope.problemReporter().varargsArgumentNeedCast(method, lastArgType, invocationSite);
          } else if (varargsType.dimensions <= (dimensions = lastArgType.dimensions())) {
            if (lastArgType.leafComponentType().isBaseType()) {
              dimensions--;
            }
            if (varargsType.dimensions < dimensions) {
              scope.problemReporter().varargsArgumentNeedCast(method, lastArgType, invocationSite);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.dimensions()

          int varargsIndex = paramLength - 1;
          ArrayBinding varargsType = (ArrayBinding) binding.parameters[varargsIndex];
          TypeBinding lastArgType = alternateArgumentTypes[varargsIndex];
          // 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 ptolemy.backtrack.eclipse.ast.Type.dimensions()

                        fieldNames.add(fieldName);
                        fieldTypes.add(type);

                        // Create a record field.
                        FieldDeclaration field = _createFieldRecord(ast, root,
                                state, fieldName, type.dimensions(), isStatic);

                        if (field != null) {
                            newFields.add(field);
                        }
                    }
View Full Code Here

Examples of r.data.RComplex.dimensions()

                boolean inverse = inversePosition == -1 ? false : parseInverse(args[inversePosition]);

                int ap_inv = inverse ? 2 : -2;
                int[] ap_maxf = new int[1];
                int[] ap_maxp = new int[1];
                int[] dims = res.dimensions();
                if (dims == null) {
                    int n = res.size();
                    GNUR.fft_factor(n, ap_maxf, ap_maxp);
                    int maxp = ap_maxp[0];
                    int maxf = ap_maxf[0];
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.