public class ClassInfo extends ClassNameAndSuperclassInfo implements XClass
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassInfo.Builder |
EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotationValue annotationValue)
Destructively add an annotation to the object.
|
XField |
findField(String name,
String signature,
boolean isStatic)
Find an XField matching given parameters.
|
XMethod |
findMatchingMethod(MethodDescriptor descriptor)
Find XMethod matching the name and signature of the supplied method
MethodDescriptor.
|
XMethod |
findMethod(MethodDescriptor descriptor)
Find XMethod matching given MethodDescriptor.
|
XMethod |
findMethod(String methodName,
String methodSig,
boolean isStatic)
Find an XMethod matching given parameters.
|
AnnotationValue |
getAnnotation(ClassDescriptor desc) |
Collection<ClassDescriptor> |
getAnnotationDescriptors() |
Collection<AnnotationValue> |
getAnnotations() |
AnnotatedObject |
getContainingScope() |
AnnotatedObject |
getContainingScope0() |
ElementType |
getElementType() |
ClassDescriptor |
getImmediateEnclosingClass()
Get the ClassDescriptor of the immediate enclosing class, or null if this
XClass is not a nested or inner class.
|
String |
getPackageName()
Get the name of the package in dotted format.
|
String |
getSlashedPackageName() |
String |
getSource() |
String |
getSourceSignature() |
List<? extends XField> |
getXFields() |
List<? extends XMethod> |
getXMethods() |
List<? extends XMethod> |
getXMethodsInCallOrder() |
boolean |
hasStubs() |
boolean |
usesConcurrency() |
getAccessFlags, getCalledClassDescriptors, getClassDescriptor, getCodeBaseEntry, getInterfaceDescriptorList, getMajorVersion, getMinorVersion, getSuperclassDescriptor, isAbstract, isAnnotation, isDeprecated, isFinal, isInterface, isPrivate, isProtected, isPublic, isStatic, isSyntheticcompareTo, createClassDescriptor, createClassDescriptor, createClassDescriptor, createClassDescriptorFromDottedClassName, createClassDescriptorFromSignature, equals, fromFieldSignature, fromResourceName, getClassName, getDottedClassName, getSignature, getSimpleName, getXClass, hashCode, isAnonymousClass, isArray, isClassResource, matches, throwClassNotFoundException, toDottedClassName, toResourceName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCalledClassDescriptors, getInterfaceDescriptorList, getSuperclassDescriptor, isAbstract, isInterfacecompareTogetAccessFlags, getClassDescriptor, isDeprecated, isFinal, isPrivate, isProtected, isPublic, isStatic, isSyntheticgetClassDescriptor, isSyntheticpublic List<? extends XField> getXFields()
getXFields in interface XClasspublic List<? extends XMethod> getXMethods()
getXMethods in interface XClasspublic XMethod findMethod(String methodName, String methodSig, boolean isStatic)
XClassfindMethod in interface XClassmethodName - name of the methodmethodSig - signature of the methodisStatic - true if the method is static, false if notpublic XMethod findMethod(MethodDescriptor descriptor)
XClassfindMethod in interface XClassdescriptor - a MethodDescriptorpublic XMethod findMatchingMethod(MethodDescriptor descriptor)
XClassfindMatchingMethod in interface XClassdescriptor - a MethodDescriptorpublic XField findField(String name, String signature, boolean isStatic)
XClasspublic ClassDescriptor getImmediateEnclosingClass()
XClassgetImmediateEnclosingClass in interface XClasspublic String getPackageName()
ClassDescriptorgetPackageName in class ClassDescriptorpublic String getSlashedPackageName()
public Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors in interface XClassgetAnnotationDescriptors in interface AnnotatedObjectpublic Collection<AnnotationValue> getAnnotations()
getAnnotations in interface AnnotatedObjectpublic AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation in interface XClassgetAnnotation in interface AnnotatedObjectpublic void addAnnotation(AnnotationValue annotationValue)
annotationValue - an AnnotationValue to add to the classpublic ElementType getElementType()
getElementType in interface AnnotatedObject@CheckForNull public String getSource()
@CheckForNull public AnnotatedObject getContainingScope()
getContainingScope in interface AnnotatedObject@CheckForNull public AnnotatedObject getContainingScope0()
public String getSourceSignature()
getSourceSignature in interface XClasspublic boolean usesConcurrency()
usesConcurrency in interface XClassCopyright © 2003–2015. All rights reserved.