Examples of erasure()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.erasure()

      ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
      if (referenceBinding.isRawType()) {
        return !((RawTypeBinding) referenceBinding).genericType().isBinaryBinding();
      } else if (referenceBinding.isParameterizedType()) {
        ParameterizedTypeBinding parameterizedTypeBinding = (ParameterizedTypeBinding) referenceBinding;
        org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding erasure = parameterizedTypeBinding.erasure();
        if (erasure instanceof ReferenceBinding) {
          return !((ReferenceBinding) erasure).isBinaryBinding();
        }
        return false;
      } else {
View Full Code Here

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

          this.scope.problemReporter().genericTypeCannotExtendThrowable(this);
          break checkEnclosedInGeneric;           
        }
        if (current.isStatic()) break checkEnclosedInGeneric;
        if (current.isLocalType()) {
          NestedTypeBinding nestedType = (NestedTypeBinding) current.erasure();
          if (nestedType.scope.methodScope().isStatic) break checkEnclosedInGeneric;
        }       
      } while ((current = current.enclosingType()) != null);
    }
    this.maxFieldCount = 0;
View Full Code Here

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

  public void recordInnerClasses(TypeBinding binding) {
    if (this.innerClassesBindings == null) {
      this.innerClassesBindings = new HashSet(INNER_CLASSES_SIZE);
    }
    ReferenceBinding innerClass = (ReferenceBinding) binding;
    this.innerClassesBindings.add(innerClass.erasure());
    ReferenceBinding enclosingType = innerClass.enclosingType();
    while (enclosingType != null
        && enclosingType.isNestedType()) {
      this.innerClassesBindings.add(enclosingType.erasure());
      enclosingType = enclosingType.enclosingType();
View Full Code Here

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

    ReferenceBinding innerClass = (ReferenceBinding) binding;
    this.innerClassesBindings.add(innerClass.erasure());
    ReferenceBinding enclosingType = innerClass.enclosingType();
    while (enclosingType != null
        && enclosingType.isNestedType()) {
      this.innerClassesBindings.add(enclosingType.erasure());
      enclosingType = enclosingType.enclosingType();
    }
  }

  public void reset(SourceTypeBinding typeBinding) {
View Full Code Here

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

    }
   
    // check captured variables are initialized in current context (26134)
    ReferenceBinding allocatedType = this.superTypeBinding == null ? this.binding.declaringClass : this.superTypeBinding;
    checkCapturedLocalInitializationIfNecessary(
      (ReferenceBinding) allocatedType.erasure(),
      currentScope,
      flowInfo);
   
    // process arguments
    if (this.arguments != null) {
View Full Code Here

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

      } else if (collectionType instanceof ReferenceBinding) {
          ReferenceBinding iterableType = ((ReferenceBinding)collectionType).findSuperTypeErasingTo(T_JavaLangIterable, false /*Iterable is not a class*/);
          checkIterable: {
            if (iterableType == null) break checkIterable;
           
          this.iteratorReceiverType = collectionType.erasure();
          if (((ReferenceBinding)iteratorReceiverType).findSuperTypeErasingTo(T_JavaLangIterable, false) == null) {
            this.iteratorReceiverType = iterableType; // handle indirect inheritance thru variable secondary bound
               this.collection.computeConversion(scope, iterableType, collectionType);
          } else {
               this.collection.computeConversion(scope, collectionType, collectionType);
View Full Code Here

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

      || !this.binding.declaringClass.canBeSeenBy(currentScope)) {

      this.codegenBinding =
        currentScope.enclosingSourceType().getUpdatedFieldBinding(
          this.codegenBinding,
          (ReferenceBinding) someReceiverType.erasure());
    }
  } 
}
public TypeBinding resolveType(BlockScope scope) {
  // Answer the signature type of the field.
View Full Code Here

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

       
      // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these
      checkAnnotationMethodType: {
        TypeBinding leafReturnType = returnTypeBinding.leafComponentType();
        if (returnTypeBinding.dimensions() <= 1) { // only 1-dimensional array permitted
          switch (leafReturnType.erasure().id) {
            case T_byte :
            case T_short :
            case T_char :
            case T_int :
            case T_long :
View Full Code Here

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

      this.value.computeConversion(scope, requiredType, valueType);       
    }
   
    // annotation methods can only return base types, String, Class, enum type, annotation types and arrays of these
    checkAnnotationMethodType: {
      switch (leafType.erasure().id) {
        case T_byte :
        case T_short :
        case T_char :
        case T_int :
        case T_long :
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.erasure()

    if (binding instanceof TypeVariableBinding) {
      TypeVariableBinding tvb = (TypeVariableBinding) binding;
      return get(tvb.erasure());
    } else if (binding instanceof ParameterizedTypeBinding) {
      ParameterizedTypeBinding ptb = (ParameterizedTypeBinding) binding;
      return get(ptb.erasure());
    } else if (binding instanceof ParameterizedMethodBinding) {
      ParameterizedMethodBinding pmb = (ParameterizedMethodBinding) binding;
      return get(pmb.original());
    } else if (binding instanceof ParameterizedFieldBinding) {
      ParameterizedFieldBinding pfb = (ParameterizedFieldBinding) binding;
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.