Top Description Fields Constructors Methods
org.glassfish.pfl.basic.algorithm

public Class ClassAnalyzer

extends Object
Class Inheritance
Imports
java.lang.reflect.Method, java.security.AccessController, .PrivilegedAction, java.util.ArrayList, .Arrays, .Collections, .List, .Map, .WeakHashMap, org.glassfish.pfl.basic.func.UnaryPredicate

Analyzes class inheritance hiearchy and provides methods for searching for classes and methods.

Field Summary

Modifier and TypeField and Description
private static Map<Class<?>, ClassAnalyzer>
private List<Class<?>>
private String
private static final Graph.Finder<Class<?>>
finder

References Deprecated Graph.Finder is deprecated or references (maybe indirectly) at least one deprecated element.

Constructor Summary

AccessConstructor and Description
private
private
ClassAnalyzer(final Class<?> cls)

Method Summary

Modifier and TypeMethod and Description
public List<Class<?>>
findClasses(UnaryPredicate<Class<?>> pred)
References Deprecated UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

public List<Method>
findMethods(UnaryPredicate<Method> pred)
References Deprecated UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

public static synchronized ClassAnalyzer
private static List<Method>
getDeclaredMethods(final Class<?> cls)

public synchronized String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

caMapback to summary
private static Map<Class<?>, ClassAnalyzer> caMap
classInheritanceback to summary
private List<Class<?>> classInheritance
contentsback to summary
private String contents
finderback to summary
private static final Graph.Finder<Class<?>> finder

References Deprecated

Graph.Finder is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Constructor Detail

ClassAnalyzerback to summary
private ClassAnalyzer(Graph<Class<?>> gr)
ClassAnalyzerback to summary
private ClassAnalyzer(final Class<?> cls)

Method Detail

findClassesback to summary
public List<Class<?>> findClasses(UnaryPredicate<Class<?>> pred)

References Deprecated

UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

findMethodsback to summary
public List<Method> findMethods(UnaryPredicate<Method> pred)

References Deprecated

UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

getClassAnalyzerback to summary
public static synchronized ClassAnalyzer getClassAnalyzer(Class<?> cls)
getDeclaredMethodsback to summary
private static List<Method> getDeclaredMethods(final Class<?> cls)
toStringback to summary
public synchronized String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override