Java Code Examples for javax.lang.model.SourceVersion#RELEASE_8
The following examples show how to use
javax.lang.model.SourceVersion#RELEASE_8 .
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: SourceVersionUtils.java From buck with Apache License 2.0 | 6 votes |
/** Gets the source version corresponding to the given target string. */ public static SourceVersion getSourceVersionFromTarget(String target) { switch (target) { case "1.3": return SourceVersion.RELEASE_3; case "1.4": return SourceVersion.RELEASE_4; case "1.5": case "5": return SourceVersion.RELEASE_5; case "1.6": case "6": return SourceVersion.RELEASE_6; case "1.7": case "7": return SourceVersion.RELEASE_7; case "1.8": case "8": return SourceVersion.RELEASE_8; default: throw new HumanReadableException("target %s not supported", target); } }
Example 2
Source File: JavacPlugin.java From manifold with Apache License 2.0 | 6 votes |
@Override public void init( JavacTask task, String... args ) { INSTANCE = this; // calling this here because the line below this references the type `BasicJavacTask`, which is in a jdk module needing exposure NecessaryEvilUtil.bypassJava9Security(); _javacTask = (BasicJavacTask)task; JavacProcessingEnvironment jpe = JavacProcessingEnvironment.instance( _javacTask.getContext() ); IS_JAVA_8 = jpe.getSourceVersion() == SourceVersion.RELEASE_8; processArgs( jpe, args ); _host = new JavacManifoldHost(); _fileFragmentResources = new ArrayList<>(); _javaSourcePath = Collections.emptySet(); assignBootclasspath(); hijackJavacFileManager(); task.addTaskListener( this ); }
Example 3
Source File: SourceVersionUtils.java From buck with Apache License 2.0 | 5 votes |
/** Gets the source version corresponding to the given target string. */ public static SourceVersion getSourceVersionFromTarget(String target) { switch (target) { case "1.3": return SourceVersion.RELEASE_3; case "1.4": return SourceVersion.RELEASE_4; case "1.5": case "5": return SourceVersion.RELEASE_5; case "1.6": case "6": return SourceVersion.RELEASE_6; case "1.7": case "7": return SourceVersion.RELEASE_7; case "1.8": case "8": return SourceVersion.RELEASE_8; case "9": return SourceVersion.RELEASE_9; case "10": return SourceVersion.RELEASE_10; case "11": return SourceVersion.RELEASE_11; default: throw new HumanReadableException("target %s not supported", target); } }
Example 4
Source File: CompiledJsonAnnotationProcessor.java From dsl-json with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public SourceVersion getSupportedSourceVersion() { SourceVersion latest = SourceVersion.latest(); if ("RELEASE_9".equals(latest.name())) { return latest; } else if (latest.name().length() > "RELEASE_9".length()) { return latest; } return SourceVersion.RELEASE_8; }
Example 5
Source File: RouterProcessor.java From grouter-android with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 6
Source File: JobProcessor.java From cathode with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 7
Source File: DumpJavaDoc.java From cxf with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 8
Source File: BaseProcessor.java From vertx-docgen with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 9
Source File: GeneratorHelper.java From vertx-codegen with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 10
Source File: SiddhiAnnotationProcessor.java From siddhi with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 11
Source File: IntentLifeProcessor.java From IntentLife with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { // Support java8 return SourceVersion.RELEASE_8; }
Example 12
Source File: CrnkProcessor.java From crnk-framework with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 13
Source File: PrismBundler.java From Prism4j with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 14
Source File: DevEnvironmentCompilerDebug.java From DevUtils with Apache License 2.0 | 4 votes |
/** * Processor 支持的最新的源版本 * @return {@link SourceVersion} */ @Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 15
Source File: DevEnvironmentCompilerRelease.java From DevUtils with Apache License 2.0 | 4 votes |
/** * Processor 支持的最新的源版本 * @return {@link SourceVersion} */ @Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 16
Source File: ApiDoclet.java From uyuni with GNU General Public License v2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }
Example 17
Source File: JabelJavacProcessor.java From jabel with Apache License 2.0 | 4 votes |
@Override public SourceVersion getSupportedSourceVersion() { return SourceVersion.RELEASE_8; }