langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/api/WrappingJavaFileManager.java
changeset 44822 2f24758e7ae0
parent 26266 2d24bda701dc
equal deleted inserted replaced
44821:c436e60e7af8 44822:2f24758e7ae0
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    33 import java.util.Set;
    33 import java.util.Set;
    34 
    34 
    35 import javax.tools.*;
    35 import javax.tools.*;
    36 import javax.tools.JavaFileObject.Kind;
    36 import javax.tools.JavaFileObject.Kind;
    37 
    37 
       
    38 import com.sun.tools.javac.util.ClientCodeException;
    38 import com.sun.tools.javac.util.DefinedBy;
    39 import com.sun.tools.javac.util.DefinedBy;
    39 import com.sun.tools.javac.util.DefinedBy.Api;
    40 import com.sun.tools.javac.util.DefinedBy.Api;
    40 
    41 
    41 /**
    42 /**
    42  * Wraps all calls to a given file manager.  Subclasses of this class
    43  * Wraps all calls to a given file manager.  Subclasses of this class
   212                                            packageName,
   213                                            packageName,
   213                                            relativeName,
   214                                            relativeName,
   214                                            unwrap(sibling)));
   215                                            unwrap(sibling)));
   215     }
   216     }
   216 
   217 
       
   218     @Override @DefinedBy(Api.COMPILER)
       
   219     public boolean contains(Location location, FileObject file) throws IOException {
       
   220         return super.contains(location, unwrap(file));
       
   221     }
       
   222 
   217 }
   223 }