Shougo / javacomplete

Omni Completion for JAVA
http://www.vim.org/scripts/script.php?script_id=1785
5 stars 1 forks source link

This is a mirror of vimscript 1785

This is javacomplete, an omni-completion script of JAVA language for vim 7.

It includes javacomplete.vim, java_parser.vim, Reflection.java, and javacomplete.txt

Features:

Requirements:

It works on all the platforms where:

existed

Input context:

It recognizes nearly all kinds of Primary Expressions (see langspec-3.0) except for "Primary.new Indentifier". Casting conversion is also supported.

Samples of input contexts are as following: ('|' indicates cursor)

After '.':

list members of a class or a package

After '('

list matching methods with parameters information.

Any place between '(' and ')' will be supported soon. Help information of javadoc is not supported yet.

After an incomplete word, list all the matched beginning with it.

Import Statement

Package Declaration

The above are in simple expression.

After Compound Expression:

e.g.

Nested Expression:

Limitations:

The embedded parser works a bit slower than expected.

TODO:

Screenshots:

Feedback:

Any problems, bugs or suggestions are welcome please send an email to fangread@yahoo.com.cn

If you want to get more functions for writing java programs besides code completion, you can try VJDE