autocomplete-java
autocomplete-java copied to clipboard
Autocomplete implementations of overriding methods
e.g. super class has a method 'someMethod(String str)'. User writes 'som' while editing inherited class and autocomplete provides boilerplate implementation as a snippet. Snippet also includes the @Override annotation.
Dictionary does not currently contain information about inheritance. Implement:
- [x] Add information about inheritance to dictionary: JavaClassReader.readClassesByName() and JavaClassLoader._addClass()
- [ ] Snippets as suggestions: AtomAutocompleteProvider.getSuggestions()
Additionally provide boilerplate implementation of constructor as a snippet: e.g. user writes 'MyCla..' in a class called 'MyClass' and autocomplete provides boilerplate implementation for constructor as a snippet. Constructor parameters are determined from superclass constructor and private fields of the class.
#3 and #4 should return suggestions only if cursor position is in 'class SomeClass { ... }' scope.