Search in sources :

Example 1 with FSInfo

use of com.sun.tools.javac.file.FSInfo in project ceylon-compiler by ceylon.

the class T7018098 method process.

//---------------
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
    Context context = ((JavacProcessingEnvironment) processingEnv).getContext();
    FSInfo fsInfo = context.get(FSInfo.class);
    round++;
    if (round == 1) {
        boolean expect = Boolean.valueOf(options.get("expect"));
        checkEqual("cache result", fsInfo.isDirectory(testDir), expect);
        initialFSInfo = fsInfo;
    } else {
        checkEqual("fsInfo", fsInfo, initialFSInfo);
    }
    return true;
}
Also used : Context(com.sun.tools.javac.util.Context) JavacProcessingEnvironment(com.sun.tools.javac.processing.JavacProcessingEnvironment) FSInfo(com.sun.tools.javac.file.FSInfo)

Aggregations

FSInfo (com.sun.tools.javac.file.FSInfo)1 JavacProcessingEnvironment (com.sun.tools.javac.processing.JavacProcessingEnvironment)1 Context (com.sun.tools.javac.util.Context)1