Package org.aspectj.weaver

Examples of org.aspectj.weaver.UnresolvedTypeVariableReferenceType


      return ResolvedType.MISSING;
    }
    // first piece of generics support!
    if (binding instanceof TypeVariableBinding) {
      TypeVariableBinding tb = (TypeVariableBinding) binding;
      UnresolvedTypeVariableReferenceType utvrt = (UnresolvedTypeVariableReferenceType) fromTypeVariableBinding(tb);
      return utvrt;
    }

    // handle arrays since the component type may need special treatment too...
    if (binding instanceof ArrayBinding) {
View Full Code Here


    // Check if its a type variable binding that we need to recover to an alias...
    if (typeVariablesForAliasRecovery != null) {
      String aliasname = (String) typeVariablesForAliasRecovery.get(aTypeVariableBinding);
      if (aliasname != null) {
        UnresolvedTypeVariableReferenceType ret = new UnresolvedTypeVariableReferenceType();
        ret.setTypeVariable(new TypeVariable(aliasname));
        return ret;
      }
    }

    if (typeVariablesForThisMember.containsKey(new String(aTypeVariableBinding.sourceName))) {
      return (UnresolvedType) typeVariablesForThisMember.get(new String(aTypeVariableBinding.sourceName));
    }

    // Create the UnresolvedTypeVariableReferenceType for the type variable
    String name = CharOperation.charToString(aTypeVariableBinding.sourceName());

    UnresolvedTypeVariableReferenceType ret = new UnresolvedTypeVariableReferenceType();
    typeVariableBindingsInProgress.put(aTypeVariableBinding, ret);

    TypeVariable tv = new TypeVariable(name);
    ret.setTypeVariable(tv);
    // Dont set any bounds here, you'll get in a recursive mess
    // TODO -- what about lower bounds??
    UnresolvedType superclassType = fromBinding(aTypeVariableBinding.superclass());
    UnresolvedType[] superinterfaces = null;
    if (aTypeVariableBinding == null || aTypeVariableBinding.superInterfaces == null) {
View Full Code Here

      return ResolvedType.MISSING;
    }
    // first piece of generics support!
    if (binding instanceof TypeVariableBinding) {
      TypeVariableBinding tb = (TypeVariableBinding) binding;
      UnresolvedTypeVariableReferenceType utvrt = (UnresolvedTypeVariableReferenceType) fromTypeVariableBinding(tb);
      return utvrt;
    }
   
    // handle arrays since the component type may need special treatment too...
    if (binding instanceof ArrayBinding) {
View Full Code Here

   
    // Check if its a type variable binding that we need to recover to an alias...
    if (typeVariablesForAliasRecovery!=null) {
      String aliasname = (String)typeVariablesForAliasRecovery.get(aTypeVariableBinding);
      if (aliasname!=null) {
        UnresolvedTypeVariableReferenceType ret = new UnresolvedTypeVariableReferenceType();
        ret.setTypeVariable(new TypeVariable(aliasname));
        return ret;
      }
    }
   
    if (typeVariablesForThisMember.containsKey(new String(aTypeVariableBinding.sourceName))) {
      return (UnresolvedType)typeVariablesForThisMember.get(new String(aTypeVariableBinding.sourceName));
    }
   
   
    // Create the UnresolvedTypeVariableReferenceType for the type variable
    String name = CharOperation.charToString(aTypeVariableBinding.sourceName());
   
    UnresolvedTypeVariableReferenceType ret = new UnresolvedTypeVariableReferenceType();
    typeVariableBindingsInProgress.put(aTypeVariableBinding,ret);
   
    TypeVariable tv = new TypeVariable(name);
    ret.setTypeVariable(tv);
    // Dont set any bounds here, you'll get in a recursive mess
    // TODO -- what about lower bounds??
    UnresolvedType superclassType    = fromBinding(aTypeVariableBinding.superclass());
    UnresolvedType[] superinterfaces = new UnresolvedType[aTypeVariableBinding.superInterfaces.length];
    for (int i = 0; i < superinterfaces.length; i++) {
View Full Code Here

   */
  public UnresolvedType lookupType(String name, IHasPosition location) {
    for (int i = 0; i < typeVariableNames.length; i++) {
      if (typeVariableNames[i].equals(name)) {
        if (typeVarTypeXs[i] == null) {
          typeVarTypeXs[i] = new UnresolvedTypeVariableReferenceType(new TypeVariable(name));
        }
        return typeVarTypeXs[i];
      }
    }
    return delegateScope.lookupType(name, location);
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.UnresolvedTypeVariableReferenceType

Copyright © 2018 www.massapicom. 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.