Java Code Examples for javax.lang.model.SourceVersion#RELEASE_7

The following examples show how to use javax.lang.model.SourceVersion#RELEASE_7 . 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 vote down vote up
/** 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: SourceVersionUtils.java    From buck with Apache License 2.0 5 votes vote down vote up
/** 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 3
Source File: RxEventBusProcessor.java    From RxEventBus with Apache License 2.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
    return SourceVersion.RELEASE_7;
}
 
Example 4
Source File: RouterProcessor.java    From YCApt with Apache License 2.0 4 votes vote down vote up
/**
 * 获取当前支持的版本号
 * 当然也可以:在类添加注解,效果是一样的 @SupportedSourceVersion(SourceVersion.RELEASE_7)
 * @return                          jdk版本号
 */
@Override
public SourceVersion getSupportedSourceVersion() {
    //获取支持的版本号
    return SourceVersion.RELEASE_7;
}
 
Example 5
Source File: IntimateProcesser.java    From Intimate with Apache License 2.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
    return SourceVersion.RELEASE_7;
}
 
Example 6
Source File: ComponentProcessor.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
  return SourceVersion.RELEASE_7;
}
 
Example 7
Source File: ProcessorImplLastRound.java    From takari-lifecycle with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
  return SourceVersion.RELEASE_7;
}
 
Example 8
Source File: ProcessorImpl.java    From takari-lifecycle with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
  return SourceVersion.RELEASE_7;
}
 
Example 9
Source File: ProcessorImpl.java    From takari-lifecycle with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public SourceVersion getSupportedSourceVersion() {
  return SourceVersion.RELEASE_7;
}
 
Example 10
Source File: AptPreferencesProcessor.java    From AptPreferences with Apache License 2.0 2 votes vote down vote up
/**
 * If the processor class is annotated with {@link
 * }, return the source version in the
 * annotation.  If the class is not so annotated, {@link
 * SourceVersion#RELEASE_6} is returned.
 *
 * @return the latest source version supported by this processor
 */
@Override
public SourceVersion getSupportedSourceVersion() {
    return SourceVersion.RELEASE_7;
}