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 ScanResult
scanResult
-
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 boolean
equals(Object obj)
protected ClassInfo
getClassInfo()
protected String
getClassName()
void
getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
TypeSignature
getResultType()
Get the result type for the method.List<ClassRefOrTypeVariableSignature>
getThrowsSignatures()
Get the throws type(s) for the method.int
hashCode()
String
toString()
-
-
-
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
TypeSignature
parsed type object.
-
getThrowsSignatures
public List<ClassRefOrTypeVariableSignature> getThrowsSignatures()
Get the throws type(s) for the method.- Returns:
- The throws types for the method, as
TypeSignature
parsed type objects.
-
getClassNamesFromTypeDescriptors
public void getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
-