Interface XClass
- All Superinterfaces:
AccessibleEntity, AnnotatedObject, Comparable<ClassDescriptor>
- All Known Implementing Classes:
ClassInfo
Interface for object representing information about a class.
-
Method Summary
Modifier and TypeMethodDescriptionFind an XField matching given parameters.findMatchingMethod(MethodDescriptor descriptor) Find XMethod matching the name and signature of the supplied method MethodDescriptor.findMethod(MethodDescriptor descriptor) Find XMethod matching given MethodDescriptor.findMethod(String methodName, String methodSig, boolean isStatic) Find an XMethod matching given parameters.getAnnotation(ClassDescriptor desc) Get the ClassDescriptor of the immediate enclosing class, or null if this XClass is not a nested or inner class.Get ClassDescriptors of interfaces directly implemented by this class.Get ClassDescriptor of this class's immediate superclass.booleanhasStubs()booleanbooleanbooleanMethods inherited from interface AccessibleEntity
getAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSyntheticMethods inherited from interface AnnotatedObject
getAnnotations, getClassDescriptor, getContainingScope, getElementType, isSyntheticMethods inherited from interface Comparable
compareTo
-
Method Details
-
getSuperclassDescriptor
Get ClassDescriptor of this class's immediate superclass.- Returns:
- ClassDescriptor of this class's immediate superclass, or null if this class has no immediate superclass
-
getInterfaceDescriptorList
ClassDescriptor[] getInterfaceDescriptorList()Get ClassDescriptors of interfaces directly implemented by this class.- Returns:
- ClassDescriptors of interfaces directly implemented by this class
-
getImmediateEnclosingClass
ClassDescriptor getImmediateEnclosingClass()Get the ClassDescriptor of the immediate enclosing class, or null if this XClass is not a nested or inner class.- Returns:
- the ClassDescriptor of the immediate enclosing class, or null if this XClass is not a nested or inner class
-
isInterface
boolean isInterface()- Returns:
- true if the class is an interface, false otherwise
-
isAbstract
boolean isAbstract()- Returns:
- true if the class is an abstract
-
getSource
- Returns:
- the Source attribute
-
getAnnotationDescriptors
Collection<ClassDescriptor> getAnnotationDescriptors()- Specified by:
getAnnotationDescriptorsin interfaceAnnotatedObject
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedObject
-
findMethod
Find an XMethod matching given parameters.- Parameters:
methodName- name of the methodmethodSig- signature of the methodisStatic- true if the method is static, false if not- Returns:
- matching XMethod, or null if there is no matching XMethod
-
findMethod
Find XMethod matching given MethodDescriptor.- Parameters:
descriptor- a MethodDescriptor- Returns:
- matching XMethod, or null if there is no matching method
-
findMatchingMethod
Find XMethod matching the name and signature of the supplied method MethodDescriptor. The class descriptor of the argument is ignored.- Parameters:
descriptor- a MethodDescriptor- Returns:
- matching XMethod, or null if there is no matching method
-
findField
-
getXFields
-
getXMethods
-
getSourceSignature
String getSourceSignature() -
usesConcurrency
boolean usesConcurrency() -
hasStubs
boolean hasStubs() -
getCalledClassDescriptors
Set<ClassDescriptor> getCalledClassDescriptors()- Returns:
- Returns the called class descriptors.
-