| java.lang.Object tide.classsyntax.ClassSyntaxManager
ClassSyntaxManager | final public class ClassSyntaxManager (Code) | | Used for the completion. Uses reflection.
Other possibilities (TODO):
1) use javaCC trees, cached or update them
2) use bcel,
present in jdk1.5.0_07+ ??
com.sun.org.apache.bcel.internal.classfile NO NO NO, not supported, use ASM, much better !
TODO: import javax only shows the first hits if such a package is found in the project.
and only in the first jar if found => collect in project and all libs...
|
Method Summary | |
public static List<AttrCompletionItem> | getAttributes(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly) Collects methods and fields. | public static List<AttrCompletionItem> | getCompletionForConstructors(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly) Collect constructors. | public static List<AttrCompletionItem> | getConstructorsArgs(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly, StringBuilder paramsMapperText) All the constructors of the given class. | public static List<AttrCompletionItem> | getMethodsArgs(SingleClassLoader scl, String javaClassName, String methodName, String classParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly) |
getAttributes | public static List<AttrCompletionItem> getAttributes(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly)(Code) | | Collects methods and fields.
here we can be clever (TODO !), look in class instead of parsing, if the class is uptodate (look at dates)
not included: names "access$*"
|
getCompletionForConstructors | public static List<AttrCompletionItem> getCompletionForConstructors(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly)(Code) | | Collect constructors. WHEN DOT PRESSED
here we can be clever (TODO !), look in class instead of parsing, if the class is
uptodate (look at dates)
|
getConstructorsArgs | public static List<AttrCompletionItem> getConstructorsArgs(SingleClassLoader scl, String javaName, String typeParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly, StringBuilder paramsMapperText)(Code) | | All the constructors of the given class.
Parameters: paramsMapperText - if non null, will be filled with the mapping of the class parameters, as for example "E=String, K=Vector". |
getMethodsArgs | public static List<AttrCompletionItem> getMethodsArgs(SingleClassLoader scl, String javaClassName, String methodName, String classParameters, boolean includePrivate, boolean includeProtected, boolean includePackageScope, boolean staticOnly)(Code) | | the Arguments completions items for all the methods named methodName. |
|
|