public final class MethodTypeSignature extends HierarchicalTypeSignature
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
classRef
The class ref, once the class is loaded.
|
protected ScanResult |
scanResult
The scan result.
|
typeAnnotationInfo| Modifier and Type | Method and Description |
|---|---|
protected void |
addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
Add a type annotation.
|
boolean |
equals(java.lang.Object obj) |
protected void |
findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo,
java.util.Set<ClassInfo> refdClassInfo,
LogNode log)
Get
ClassInfo objects for any classes referenced in the type descriptor or type signature. |
protected void |
findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
Get the names of any classes referenced in the type signature.
|
protected ClassInfo |
getClassInfo()
Get the
ClassInfo object for the referenced class, or null if the referenced class was not
encountered during scanning (i.e. no ClassInfo object was created for the class during scanning). |
protected java.lang.String |
getClassName()
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
AnnotationInfoList |
getReceiverTypeAnnotationInfo()
Get type annotations on the explicit receiver parameter, or null if none.
|
TypeSignature |
getResultType()
Get the result type for the method.
|
java.util.List<ClassRefOrTypeVariableSignature> |
getThrowsSignatures()
Get the throws type(s) for the method.
|
java.util.List<TypeParameter> |
getTypeParameters()
Get the type parameters for the method, if this is a
generic method.
|
int |
hashCode() |
java.lang.String |
toString()
Render to string.
|
protected void |
toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
Render type signature to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
addTypeAnnotation, toStringprotected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
public java.util.List<TypeParameter> getTypeParameters()
public TypeSignature getResultType()
TypeSignature parsed type object.public java.util.List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
TypeSignature parsed type objects.protected void addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
HierarchicalTypeSignatureaddTypeAnnotation in class HierarchicalTypeSignaturetypePath - the type pathannotationInfo - the annotationpublic AnnotationInfoList getReceiverTypeAnnotationInfo()
protected java.lang.String getClassName()
getClassInfo() to fetch the ClassInfo object for the class).protected ClassInfo getClassInfo()
ClassInfo object for the referenced class, or null if the referenced class was not
encountered during scanning (i.e. no ClassInfo object was created for the class during scanning). N.B. even
if this method returns null, loadClass() may be able to load the referenced class by name.ClassInfo object for the referenced class.protected void findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
refdClassNames - the referenced class names.protected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced in the type descriptor or type signature.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected void toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
HierarchicalTypeSignaturetoStringInternal in class HierarchicalTypeSignatureuseSimpleNames - whether to use simple names for classes.annotationsToExclude - toplevel annotations to exclude, to eliminate duplication (toplevel annotations are both
class/field/method annotations and type annotations).buf - the StringBuilder to write to.public java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object