Codota Logo
JavaDirectoryService.getLanguageLevel
Code IndexAdd Codota to your IDE (free)

How to use
getLanguageLevel
method
in
com.intellij.psi.JavaDirectoryService

Best Java code snippets using com.intellij.psi.JavaDirectoryService.getLanguageLevel (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: com.github.adedayo.intellij.sdk/java-psi-api

@NotNull
public static LanguageLevel getLanguageLevel(@NotNull PsiElement element) {
 if (element instanceof PsiDirectory) {
  return JavaDirectoryService.getInstance().getLanguageLevel((PsiDirectory)element);
 }
 PsiFile file = element.getContainingFile();
 if (file instanceof PsiJavaFile) {
  return ((PsiJavaFile)file).getLanguageLevel();
 }
 if (file != null) {
  PsiElement context = file.getContext();
  if (context != null) {
   return getLanguageLevel(context);
  }
 }
 return getLanguageLevel(element.getProject());
}
com.intellij.psiJavaDirectoryServicegetLanguageLevel

Popular methods of JavaDirectoryService

  • getInstance
  • createClass
  • getPackage
    Returns the package corresponding to the directory.
  • isSourceRoot
    Checks if the directory is a source root for the project to which it belongs.

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • String (java.lang)
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now