langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/file/BaseFileObject.java
changeset 26266 2d24bda701dc
parent 25874 83c19f00452c
child 27225 8369cde9152a
equal deleted inserted replaced
26265:46aacfffd3b5 26266:2d24bda701dc
    38 import javax.tools.JavaFileObject;
    38 import javax.tools.JavaFileObject;
    39 
    39 
    40 import static javax.tools.JavaFileObject.Kind.*;
    40 import static javax.tools.JavaFileObject.Kind.*;
    41 
    41 
    42 import com.sun.tools.javac.util.BaseFileManager;
    42 import com.sun.tools.javac.util.BaseFileManager;
       
    43 import com.sun.tools.javac.util.DefinedBy;
       
    44 import com.sun.tools.javac.util.DefinedBy.Api;
    43 
    45 
    44 /**
    46 /**
    45  * <p><b>This is NOT part of any supported API.
    47  * <p><b>This is NOT part of any supported API.
    46  * If you write code that depends on this, you do so at your own risk.
    48  * If you write code that depends on this, you do so at your own risk.
    47  * This code and its internal interfaces are subject to change or
    49  * This code and its internal interfaces are subject to change or
    59     @Override
    61     @Override
    60     public String toString() {
    62     public String toString() {
    61         return getClass().getSimpleName() + "[" + getName() + "]";
    63         return getClass().getSimpleName() + "[" + getName() + "]";
    62     }
    64     }
    63 
    65 
       
    66     @DefinedBy(Api.COMPILER)
    64     public NestingKind getNestingKind() { return null; }
    67     public NestingKind getNestingKind() { return null; }
    65 
    68 
       
    69     @DefinedBy(Api.COMPILER)
    66     public Modifier getAccessLevel()  { return null; }
    70     public Modifier getAccessLevel()  { return null; }
    67 
    71 
       
    72     @DefinedBy(Api.COMPILER)
    68     public Reader openReader(boolean ignoreEncodingErrors) throws IOException {
    73     public Reader openReader(boolean ignoreEncodingErrors) throws IOException {
    69         return new InputStreamReader(openInputStream(), getDecoder(ignoreEncodingErrors));
    74         return new InputStreamReader(openInputStream(), getDecoder(ignoreEncodingErrors));
    70     }
    75     }
    71 
    76 
    72     protected CharsetDecoder getDecoder(boolean ignoreEncodingErrors) {
    77     protected CharsetDecoder getDecoder(boolean ignoreEncodingErrors) {