| java.lang.Object org.netbeans.editor.ext.java.JCUtilities
JCUtilities | public class JCUtilities (Code) | | Java completion utilities
author: Miloslav Metelka version: 1.00 |
Method Summary | |
public static JCClass | createSimpleClass(Class c) | public static JavaCompletion.BaseType | createType(Class c) | public static String | dumpClass(JCClass c) | public static boolean | equal(JCClass c1, JCClass c2) | public static List | filterMethods(List methodList, List parmTypeList, boolean acceptMoreParameters) Filter the list of the methods (usually returned from
Finder.findMethods()) or the list of the constructors by the given
parameter specification.
Parameters: methodList - list of the methods. | public static List | getAllInterfaces(JCClass cls) Get all the interfaces the class/interface implements/extends. | public static List | getClassList(List classNames, boolean storeDeclaredClasses, int classLevel, int fieldLevel, int methodLevel) | public static List | getClassNameList(String packageDirName) | public static JCType | getCommonType(JCType typ1, JCType typ2) | public static List | getConstructors(JCClass cls) Get the sorted constructor list for the given class. | public static JCClass | getExactClass(JCFinder finder, String name, String pkgName) | public static List | getSuperclasses(JCClass cls) Get the list containing the given class and all its superclasses. | public static boolean | isAssignable(JCType from, JCType to) |
filterMethods | public static List filterMethods(List methodList, List parmTypeList, boolean acceptMoreParameters)(Code) | | Filter the list of the methods (usually returned from
Finder.findMethods()) or the list of the constructors by the given
parameter specification.
Parameters: methodList - list of the methods. They should have the same name but infact they don't have to. Parameters: parmTypes - parameter types specification. If set to null, no filtering isperformed and the same list is returned. If a particular Parameters: acceptMoreParameters - useful for code completion to get even the methods with moreparameters. |
getAllInterfaces | public static List getAllInterfaces(JCClass cls)(Code) | | Get all the interfaces the class/interface implements/extends.
|
getClassList | public static List getClassList(List classNames, boolean storeDeclaredClasses, int classLevel, int fieldLevel, int methodLevel)(Code) | | |
getClassNameList | public static List getClassNameList(String packageDirName)(Code) | | |
getConstructors | public static List getConstructors(JCClass cls)(Code) | | Get the sorted constructor list for the given class.
|
getSuperclasses | public static List getSuperclasses(JCClass cls)(Code) | | Get the list containing the given class and all its superclasses.
|
|
|