Java Code Examples for com.sun.source.util.TaskEvent#Kind
The following examples show how to use
com.sun.source.util.TaskEvent#Kind .
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: DeptectivePlugin.java From deptective with Apache License 2.0 | 6 votes |
private TaskEventKind getTaskEventKind(TaskEvent.Kind kind, int totalSourceFiles, int analyzedSourceFiles) { if (kind == Kind.PARSE) { return TaskEventKind.PARSE; } else if (kind == Kind.ANALYZE) { if (!HAS_KIND_COMPILATION && analyzedSourceFiles >= totalSourceFiles - 1) { return TaskEventKind.LAST_ANALYZE; } else { return TaskEventKind.ANALYZE; } } else if (kind.name().equals("COMPILATION")) { return TaskEventKind.COMPILATION; } else { return TaskEventKind.OTHER; } }
Example 2
Source File: DeptectivePlugin.java From deptective with Apache License 2.0 | 6 votes |
private TaskEventKind getTaskEventKind(TaskEvent.Kind kind, int totalSourceFiles, int analyzedSourceFiles) { if (kind == Kind.PARSE) { return TaskEventKind.PARSE; } else if (kind == Kind.ANALYZE) { if (!HAS_KIND_COMPILATION && analyzedSourceFiles >= totalSourceFiles - 1) { return TaskEventKind.LAST_ANALYZE; } else { return TaskEventKind.ANALYZE; } } else if (kind.name().equals("COMPILATION")) { return TaskEventKind.COMPILATION; } else { return TaskEventKind.OTHER; } }
Example 3
Source File: DeptectivePlugin.java From deptective with Apache License 2.0 | 5 votes |
private static boolean hasKindCompilation() { for (TaskEvent.Kind kind : TaskEvent.Kind.values()) { if (kind.name().equals("COMPILATION")) { return true; } } return false; }
Example 4
Source File: TestSimpleAddRemove.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
void inc(TaskEvent.Kind k, boolean started) { Count c = get(k); if (c == null) put(k, c = new Count()); if (started) c.started++; else c.finished++; }
Example 5
Source File: ValidatingTaskListener.java From buck with Apache License 2.0 | 5 votes |
@Override public void started(TaskEvent e) { TaskEvent.Kind kind = e.getKind(); if (kind == TaskEvent.Kind.ENTER) { enterDepth += 1; } else if (kind == TaskEvent.Kind.ANNOTATION_PROCESSING) { annotationProcessing = true; } }
Example 6
Source File: TestSimpleAddRemove.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
void inc(TaskEvent.Kind k, boolean started) { Count c = get(k); if (c == null) put(k, c = new Count()); if (started) c.started++; else c.finished++; }
Example 7
Source File: TestSimpleAddRemove.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
void inc(TaskEvent.Kind k, boolean started) { Count c = get(k); if (c == null) put(k, c = new Count()); if (started) c.started++; else c.finished++; }
Example 8
Source File: TestSimpleAddRemove.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
void inc(TaskEvent.Kind k, boolean started) { Count c = get(k); if (c == null) put(k, c = new Count()); if (started) c.started++; else c.finished++; }
Example 9
Source File: DeptectivePlugin.java From deptective with Apache License 2.0 | 5 votes |
private static boolean hasKindCompilation() { for (TaskEvent.Kind kind : TaskEvent.Kind.values()) { if (kind.name().equals("COMPILATION")) { return true; } } return false; }
Example 10
Source File: TestSimpleAddRemove.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
void inc(TaskEvent.Kind k, boolean started) { Count c = get(k); if (c == null) put(k, c = new Count()); if (started) c.started++; else c.finished++; }
Example 11
Source File: DPrinter.java From hottub with GNU General Public License v2.0 | 4 votes |
TaskEvent.Kind getKind(String s) { return TaskEvent.Kind.valueOf(s.toUpperCase()); }
Example 12
Source File: TestSimpleAddRemove.java From hottub with GNU General Public License v2.0 | 4 votes |
EventKindCounter() { super(TaskEvent.Kind.class); }
Example 13
Source File: DPrinter.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
TaskEvent.Kind getKind(String s) { return TaskEvent.Kind.valueOf(s.toUpperCase()); }
Example 14
Source File: BuckJavacTaskListenerProxy.java From buck with Apache License 2.0 | 4 votes |
private TaskEventMirror.Kind mirrorKind(TaskEvent.Kind kind) { return TaskEventMirror.Kind.valueOf(kind.name()); }
Example 15
Source File: TestSimpleAddRemove.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
EventKindCounter() { super(TaskEvent.Kind.class); }
Example 16
Source File: TestSimpleAddRemove.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
EventKindCounter() { super(TaskEvent.Kind.class); }
Example 17
Source File: DPrinter.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
TaskEvent.Kind getKind(String s) { return TaskEvent.Kind.valueOf(s.toUpperCase()); }
Example 18
Source File: TestSimpleAddRemove.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
EventKindCounter() { super(TaskEvent.Kind.class); }
Example 19
Source File: DPrinter.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
TaskEvent.Kind getKind(String s) { return TaskEvent.Kind.valueOf(s.toUpperCase()); }
Example 20
Source File: DPrinter.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
TaskEvent.Kind getKind(String s) { return TaskEvent.Kind.valueOf(s.toUpperCase()); }