Example usage for javax.tools JavaFileObject getClass

List of usage examples for javax.tools JavaFileObject getClass

Introduction

In this page you can find the example usage for javax.tools JavaFileObject getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.github.drxaos.jvmvm.compiler.javac.MemoryFileManager.java

public String inferBinaryName(Location location, JavaFileObject file) {
    if (file instanceof MemoryJavaFile) {
        file.getClass(); // null check
        location.getClass(); // null check
        return ((MemoryJavaFile) file).getClassName();
    } else {//w w  w  .jav  a 2s . co  m
        return super.inferBinaryName(location, file);
    }
}