Class SoftReflector
java.lang.Object
net.thevpc.common.prs.softreflect.SoftReflector
- Author:
- Taha BEN SALAH (taha.bensalah@gmail.com) %creationtime 3 janv. 2006 21:40:14
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intreflector look after all fields in the class and its super classesstatic final intreflector look after all fields in the class and its super classesstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic SoftClassBuilderstatic SoftClassInfogetClassInfo(SoftClass clz, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, boolean findFields, boolean findMethods, boolean findParentClasses, boolean findInterfaces, boolean deeperMethod) static SoftClassInfogetClassInfo(SoftClass clz, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, int flags) static booleanstatic voidsearchFields(SoftClass clz, List<SoftField> fieldsList, List<SoftMethod> methodsList, List<SoftClass> parentClasses, List<SoftClass> interfaces, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, boolean deeperMethod) static voidvisitURLClasses(URL url, SoftClassVisitor visitor, SoftClassLoader classLoader) URL must denote either a jar file or a local folder
-
Field Details
-
FIELDS
public static final int FIELDSreflector look after all fields in the class and its super classes- See Also:
-
METHODS
public static final int METHODSreflector look after all fields in the class and its super classes- See Also:
-
OVERRIDDEN_METHODS
public static final int OVERRIDDEN_METHODS- See Also:
-
PARENT_CLASSES
public static final int PARENT_CLASSES- See Also:
-
PARENT_INTERFACES
public static final int PARENT_INTERFACES- See Also:
-
DEFAULT
public static final int DEFAULT- See Also:
-
ALL
public static final int ALL- See Also:
-
-
Method Details
-
getClassBuilder
-
getClassInfo
public static SoftClassInfo getClassInfo(SoftClass clz, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, int flags) -
getClassInfo
public static SoftClassInfo getClassInfo(SoftClass clz, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, boolean findFields, boolean findMethods, boolean findParentClasses, boolean findInterfaces, boolean deeperMethod) -
searchFields
public static void searchFields(SoftClass clz, List<SoftField> fieldsList, List<SoftMethod> methodsList, List<SoftClass> parentClasses, List<SoftClass> interfaces, SoftFieldFilter fieldsFilter, SoftMethodFilter methodsFilter, boolean deeperMethod) - Parameters:
clz- class to introspectfieldsList- fields list to fill, if null, fields will not be looked aftermethodsList- methods list to fill, if null, methods will not be looked afterfieldsFilter- fields filtermethodsFilter- methods filterdeeperMethod- if true, only virtual methods implementation will be returned
-
isAssignableFrom
-
visitURLClasses
public static void visitURLClasses(URL url, SoftClassVisitor visitor, SoftClassLoader classLoader) throws IOException URL must denote either a jar file or a local folder- Throws:
IOException
-