congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JCTree$JCIdent.getPreferredPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
getPreferredPosition
method
in
com.sun.tools.javac.tree.JCTree$JCIdent

Best Java code snippets using com.sun.tools.javac.tree.JCTree$JCIdent.getPreferredPosition (Showing top 1 results out of 315)

origin: mopemope/meghanada-server

private static void analyzePackageName(
  CompilationUnitTree cut, Source src, EndPosTable endPosTable) {
 ExpressionTree packageExpr = cut.getPackageName();
 if (isNull(packageExpr)) {
  src.setPackageName("");
 } else {
  src.setPackageName(packageExpr.toString());
 }
 if (packageExpr instanceof JCTree.JCIdent) {
  JCTree.JCIdent ident = (JCTree.JCIdent) packageExpr;
  int startPos = ident.getPreferredPosition();
  int endPos = ident.getEndPosition(endPosTable);
  Range range = Range.create(src, startPos + 1, endPos);
  long pkgLine = range.begin.line;
  src.setPackageStartLine(pkgLine);
  addPackageIndex(src, pkgLine, 8, src.getPackageName());
 }
}
com.sun.tools.javac.treeJCTree$JCIdentgetPreferredPosition

Popular methods of JCTree$JCIdent

  • getName
  • <init>
  • pos
  • setPos
  • setType
  • toString
  • getEndPosition
  • getStartPosition

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JLabel (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now