Java Code Examples for javax.tools.FileObject#getClass()
The following examples show how to use
javax.tools.FileObject#getClass() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EclipseFileManager.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override public boolean isSameFile(FileObject fileObject1, FileObject fileObject2) { // EclipseFileManager creates only EcliseFileObject if (!(fileObject1 instanceof EclipseFileObject)) throw new IllegalArgumentException("Unsupported file object class : " + fileObject1.getClass());//$NON-NLS-1$ if (!(fileObject2 instanceof EclipseFileObject)) throw new IllegalArgumentException("Unsupported file object class : " + fileObject2.getClass());//$NON-NLS-1$ return fileObject1.equals(fileObject2); }
Example 2
Source File: DynaFileManager.java From kan-java with Eclipse Public License 1.0 | 5 votes |
public boolean isSameFile(FileObject a, FileObject b) { if (a == b) return true; Class<?> ac = a.getClass(); Class<?> bc = b.getClass(); if (ac.equals(bc)) { if (JavaClassFile.class.equals(ac) || JavaSourceFile.class.equals(ac)) { return a.equals(b); } else { return super.isSameFile(a, b); } } else { return false; } }
Example 3
Source File: ClientCodeWrapper.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 4
Source File: ClientCodeWrapper.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 5
Source File: ClientCodeWrapper.java From java-n-IDE-for-Android with Apache License 2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 6
Source File: ClientCodeWrapper.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 7
Source File: ClientCodeWrapper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 8
Source File: ClientCodeWrapper.java From javaide with GNU General Public License v3.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 9
Source File: ClientCodeWrapper.java From hottub with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 10
Source File: ClientCodeWrapper.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 11
Source File: ClientCodeWrapper.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
WrappedFileObject(FileObject clientFileObject) { clientFileObject.getClass(); // null check this.clientFileObject = clientFileObject; }
Example 12
Source File: EclipseFileManager.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
public boolean isSameFile(FileObject fileObject1, FileObject fileObject2) { // EclipseFileManager creates only EcliseFileObject if (!(fileObject1 instanceof EclipseFileObject)) throw new IllegalArgumentException("Unsupported file object class : " + fileObject1.getClass());//$NON-NLS-1$ if (!(fileObject2 instanceof EclipseFileObject)) throw new IllegalArgumentException("Unsupported file object class : " + fileObject2.getClass());//$NON-NLS-1$ return fileObject1.equals(fileObject2); }