Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

paulvi/tern.java

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

260 Commits
260 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tern.java

tern.js is a stand-alone code-analysis engine for JavaScript written in Javascript.

tern.java provides the capability to use tern.js with Java context. It provides several implementation :

  • wraps tern.js with Java code by using Rhino to create a Tern Server with Java code.
  • wraps tern.js with Java code by using node.js to create a Tern Server with Java code.
  • an other idea is to use javv8 but it seems the project is dead and I need win32 implementation.

As Tern is very CPU and memory intensive, the implementation with Rhino is very slow when javascript document is big. So it's better to use node.js or javv8.

Features

Once that Tern Server is created with Java you can use it in any Java context (Eclipse, Netbeans, etc). tern.java provides the capability to use Tern Server with Eclipse :

  • contentassist which uses tern.java. If you start the SWT TernEditor demo, you will see contentassist available for Javascript :

SWT Tern Editor

Eclipse IDE

Tern.java provides an Eclipse IDE integration with Tern. For more information please read Tern Eclipse IDE.

You can see AngularJS Eclipse which is based on tern.java.

The update site is available at http://oss.opensagres.fr/tern.repository/1.0.0-SNAPSHOT/

Build

See cloudbees job: https://opensagres.ci.cloudbees.com/job/tern.java/

Rhino version

As tern.js uses ECMAScript5, the Rhino version should support it. The org.mozilla.javascript is an OSGi bundle which wraps the JAR Rhino 1.7R4 which supports ECMAScript5.

About

User tern.js with Java code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 72.3%
  • Java 14.4%
  • C 6.4%
  • C++ 4.3%
  • CSS 1.5%
  • D 0.8%
  • Other 0.3%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.