Examples of typeVariables()


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

  }
 
  @Override
  public List<? extends TypeParameterElement> getTypeParameters() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    TypeVariableBinding[] variables = binding.typeVariables();
    if (variables.length == 0) {
      return Collections.emptyList();
    }
    List<TypeParameterElement> params = new ArrayList<TypeParameterElement>(variables.length);
    for (TypeVariableBinding variable : variables) {
View Full Code Here

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

        ReferenceBinding referenceBinding = (ReferenceBinding) typeBinding;
        ReferenceBinding referenceBinding2 = (ReferenceBinding) typeBinding2;
        return CharOperation.equals(referenceBinding.compoundName, referenceBinding2.compoundName)
          && (referenceBinding.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
              == (referenceBinding2.modifiers & (ExtraCompilerModifiers.AccJustFlag | ClassFileConstants.AccInterface | ClassFileConstants.AccEnum | ClassFileConstants.AccAnnotation))
          && isEqual(referenceBinding.typeVariables(), referenceBinding2.typeVariables(), visitedTypes)
          && isEqual(referenceBinding.enclosingType(), referenceBinding2.enclosingType(), visitedTypes);

      case Binding.RAW_TYPE :
      default :
        if (!(typeBinding2 instanceof ReferenceBinding)) {
View Full Code Here

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

  }
 
  @Override
  public List<? extends TypeParameterElement> getTypeParameters() {
    ReferenceBinding binding = (ReferenceBinding)_binding;
    TypeVariableBinding[] variables = binding.typeVariables();
    if (variables.length == 0) {
      return Collections.emptyList();
    }
    List<TypeParameterElement> params = new ArrayList<TypeParameterElement>(variables.length);
    for (TypeVariableBinding variable : variables) {
View Full Code Here

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

              }
              // no conversion needed as only for reference types
              break checkIterable;

            case Binding.GENERIC_TYPE : // for (T t : Iterable<T>) - in case used inside Iterable itself
              arguments = iterableType.typeVariables();
              break;

            case Binding.PARAMETERIZED_TYPE : // for(E e : Iterable<E>)
              arguments = ((ParameterizedTypeBinding)iterableType).arguments;
              break;
View Full Code Here

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

        args.add(_env.getFactory().newTypeMirror(arg));
      }
      return Collections.unmodifiableList(args);
    }
    if (binding.isGenericType()) {
      TypeVariableBinding[] typeVariables = binding.typeVariables();
      List<TypeMirror> args = new ArrayList<TypeMirror>(typeVariables.length);
      for (TypeBinding arg : typeVariables) {
        args.add(_env.getFactory().newTypeMirror(arg));
      }
      return Collections.unmodifiableList(args);
View Full Code Here

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

    @Override
    public DeclaredType getDeclaredType(TypeElement typeElem, TypeMirror... typeArgs) {
        int typeArgsLength = typeArgs.length;
        TypeElementImpl typeElementImpl = (TypeElementImpl) typeElem;
        ReferenceBinding referenceBinding = (ReferenceBinding) typeElementImpl._binding;
        TypeVariableBinding[] typeVariables = referenceBinding.typeVariables();
        int typeVariablesLength = typeVariables.length;
        if (typeArgsLength == 0) {
            if (referenceBinding.isGenericType()) {
                // must return a raw type
                return (DeclaredType) _env.getFactory().newTypeMirror(this._env.getLookupEnvironment().createRawType(referenceBinding, null));
View Full Code Here

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

    public DeclaredType getDeclaredType(DeclaredType containing, TypeElement typeElem,
            TypeMirror... typeArgs) {
        int typeArgsLength = typeArgs.length;
        TypeElementImpl typeElementImpl = (TypeElementImpl) typeElem;
        ReferenceBinding referenceBinding = (ReferenceBinding) typeElementImpl._binding;
        TypeVariableBinding[] typeVariables = referenceBinding.typeVariables();
        int typeVariablesLength = typeVariables.length;
        DeclaredTypeImpl declaredTypeImpl = (DeclaredTypeImpl) containing;
        ReferenceBinding enclosingType = (ReferenceBinding) declaredTypeImpl._binding;
        if (typeArgsLength == 0) {
            if (referenceBinding.isGenericType()) {
View Full Code Here

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

        args.add(_env.getFactory().newTypeMirror(arg));
      }
      return Collections.unmodifiableList(args);
    }
    if (binding.isGenericType()) {
      TypeVariableBinding[] typeVariables = binding.typeVariables();
      List<TypeMirror> args = new ArrayList<TypeMirror>(typeVariables.length);
      for (TypeBinding arg : typeVariables) {
        args.add(_env.getFactory().newTypeMirror(arg));
      }
      return Collections.unmodifiableList(args);
View Full Code Here

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

              }
              // no conversion needed as only for reference types
              break checkIterable;

            case Binding.GENERIC_TYPE : // for (T t : Iterable<T>) - in case used inside Iterable itself
              arguments = iterableType.typeVariables();
              break;

            case Binding.PARAMETERIZED_TYPE : // for(E e : Iterable<E>)
              arguments = ((ParameterizedTypeBinding)iterableType).arguments;
              break;
View Full Code Here

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

              }
              // no conversion needed as only for reference types
              break checkIterable;

            case Binding.GENERIC_TYPE : // for (T t : Iterable<T>) - in case used inside Iterable itself
              arguments = iterableType.typeVariables();
              break;

            case Binding.PARAMETERIZED_TYPE : // for(E e : Iterable<E>)
              arguments = ((ParameterizedTypeBinding)iterableType).arguments;
              break;
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.