Package io.github.fastclasspathscanner
Class MethodTypeSignature
- java.lang.Object
-
- io.github.fastclasspathscanner.HierarchicalTypeSignature
-
- io.github.fastclasspathscanner.MethodTypeSignature
-
public class MethodTypeSignature extends HierarchicalTypeSignature
A method type signature (called "MethodSignature" in the classfile documentation).
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Constructor Summary
Constructors Constructor Description MethodTypeSignature(List<TypeParameter> typeParameters, List<TypeSignature> paramTypes, TypeSignature resultType, List<ClassRefOrTypeVariableSignature> throwsSignatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected ClassInfogetClassInfo()protected StringgetClassName()voidgetClassNamesFromTypeDescriptors(Set<String> classNameListOut)TypeSignaturegetResultType()Get the result type for the method.List<ClassRefOrTypeVariableSignature>getThrowsSignatures()Get the throws type(s) for the method.inthashCode()StringtoString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Constructor Detail
-
MethodTypeSignature
public MethodTypeSignature(List<TypeParameter> typeParameters, List<TypeSignature> paramTypes, TypeSignature resultType, List<ClassRefOrTypeVariableSignature> throwsSignatures)
- Parameters:
typeParameters- The type parameters for the method.paramTypes- The parameter types for the method.resultType- The return type for the method.throwsSignatures- The throws signatures for the method.
-
-
Method Detail
-
getResultType
public TypeSignature getResultType()
Get the result type for the method.- Returns:
- The result type for the method, as a
TypeSignatureparsed type object.
-
getThrowsSignatures
public List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
Get the throws type(s) for the method.- Returns:
- The throws types for the method, as
TypeSignatureparsed type objects.
-
getClassNamesFromTypeDescriptors
public void getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
-