Package org.aspectj.org.eclipse.jdt.internal.compiler.lookup

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


      || !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

       
      // 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

      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

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.