org.eclipse.jdt.internal.compiler.batch.Main.checkVMVersion()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.eclipse.jdt.internal.compiler.batch.Main.checkVMVersion()方法的一些代码示例,展示了Main.checkVMVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.checkVMVersion()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.batch.Main
类名称:Main
方法名:checkVMVersion

Main.checkVMVersion介绍

[英]Return true if and only if the running VM supports the given minimal version.

This only checks the major version, since the minor version is always 0 (at least for the useful cases).

The given minimalSupportedVersion is one of the constants:

  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_1
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_2
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_3
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_4
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_5
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_6
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_7
    [中]当且仅当运行的VM支持给定的最小版本时,返回true。
    这只检查主版本,因为次版本总是0(至少对于有用的情况)。
    给定的minimalSupportedVersion是常数之一:
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_1
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_2
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_3
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_4
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_5
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_6
  • org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants.JDK1_7

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {
if (checkVMVersion(ClassFileConstants.JDK9)) {
  initRootModules(this.batchCompiler.lookupEnvironment, environment);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {
if (checkVMVersion(ClassFileConstants.JDK9)) {
  initRootModules(this.batchCompiler.lookupEnvironment, environment);

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

if (checkVMVersion(ClassFileConstants.JDK1_6)) {
  initializeAnnotationProcessorManager();
  if (this.classNames != null) {

相关文章