001    /*
002     * The JastAdd Extensible Java Compiler (http://jastadd.org) is covered
003     * by the modified BSD License. You should have received a copy of the
004     * modified BSD license with this compiler.
005     * 
006     * Copyright (c) 2005-2008, Torbjorn Ekman
007     * All rights reserved.
008     */
009    
010    aspect StaticImportsCodegen {
011      refine GenericsCodegen protected TypeDecl VarAccess.fieldQualifierType() {
012        TypeDecl typeDecl = refined();
013        if(typeDecl != null)
014          return typeDecl;
015        return decl().hostType();
016      }
017    
018      refine GenericsCodegen protected TypeDecl MethodAccess.methodQualifierType() {
019        TypeDecl typeDecl = refined();
020        if(typeDecl != null)
021          return typeDecl;
022        return decl().hostType();
023      }
024    
025    }