GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ZRDK/tern.java: Use tern.js in Java context

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,272 Commits
1,272 Commits

Folders and files

NameName
Last commit message
Last commit date
core
core
 
 
docs
docs
 
 
eclipse
eclipse
 
 
samples
samples
 
 
sandbox
sandbox
 
 
swing/samples
swing/samples
 
 
thirdparties
thirdparties
 
 
update-site
update-site
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
Apache-2.0-License.txt
Apache-2.0-License.txt
 
 
NOTICE.txt
NOTICE.txt
 
 
README.md
README.md
 
 
license.txt
license.txt
 
 
pom.xml
pom.xml
 
 
pushToBintray.sh
pushToBintray.sh
 
 

Repository files navigation

⚠️ Tern.java is now OUTDATED, it's recommended to use Eclipse Wild Web Developer instead

tern.java

Build Status Eclipse install

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 tern server implementation :

  • tern.server.j2v8 wraps tern.js with Java code by using J2V8 to create a Tern Server with Java code.
  • tern.server.rhino wraps tern.js with Java code by using Rhino to create a Tern Server with Java code.
  • tern.server.nashorn wraps tern.js with Java code by using Java 8 Nashorn JavaScript engine to create a Tern Server with Java code.
  • tern.server.nodejs wraps tern.js with Java code by using node.js to create a Tern Server with Java code.

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. Nashorn is a little slow compare to J2V8 or node.js

Core Features

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

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

SWT Tern Editor

Eclipse IDE

On top of core module Tern.java provides an Eclipse IDE integration with Tern. For more information please read Tern Eclipse IDE.

To install Tern IDE, please read Installation - Update site section.

Plugins based on Tern IDE

  • AngularJS Eclipse to give support for AngularJS.
  • JavaScript Build Eclipse to give support for Grunt and Gulp.

Tern Tooling

There are also advanced tools for creators of tern plugins, see wiki pages Tern-Toolings, Tern-Console and Debugging.

Who is using tern.java?

  • JBoss Studio for :
  • Cordova Support
  • Angular Support

See http://tools.jboss.org/blog/2014-06-19-beta2-for-luna.html#better-javascript for more informations.

  • Liferay IDE 2.2 for :
  • YUI, AUI support
  • Liferay support

See http://www.liferay.com/fr/web/gregory.amerson/blog/-/blogs/liferay-ide-2-2-release for more informations.

  • Nodeclipse for :

  • node, express, support

  • mongodb native, mongoose support

  • MyEclipse and [Webclipse (JSjet)] (https://www.genuitec.com/products/webclipse/) :

  • content assist

  • jump to definition

  • element documentation

  • tern.java is used as a base for:

    • refactoring
    • occurences highlighting
    • outline
    • type hierarchy
    • call hierarchy

See https://www.genuitec.com/tag/tern/ for more informations.

Build

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

About

Use tern.js in Java context

ternjs.net/

Resources

Readme
License
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.