Package io.github.fastclasspathscanner
Class BaseTypeSignature
- java.lang.Object
-
- io.github.fastclasspathscanner.HierarchicalTypeSignature
-
- io.github.fastclasspathscanner.TypeSignature
-
- io.github.fastclasspathscanner.BaseTypeSignature
-
public class BaseTypeSignature extends TypeSignature
A type signature for a base type.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Constructor Summary
Constructors Constructor Description BaseTypeSignature(String baseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanequalsIgnoringTypeParams(TypeSignature other)Compare base types, ignoring generic type parameters.protected ClassInfogetClassInfo()protected StringgetClassName()voidgetClassNamesFromTypeDescriptors(Set<String> classNameListOut)Class<?>getType()Get the class of the base type, such as int.class, float.class, or void.class.StringgetTypeStr()Get the base type, such as "int", "float", or "void".inthashCode()StringtoString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Constructor Detail
-
BaseTypeSignature
public BaseTypeSignature(String baseType)
- Parameters:
baseType- the base type
-
-
Method Detail
-
getTypeStr
public String getTypeStr()
Get the base type, such as "int", "float", or "void".- Returns:
- The base type.
-
getType
public Class<?> getType()
Get the class of the base type, such as int.class, float.class, or void.class.- Returns:
- The base type class reference.
-
getClassNamesFromTypeDescriptors
public void getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
equalsIgnoringTypeParams
public boolean equalsIgnoringTypeParams(TypeSignature other)
Description copied from class:TypeSignatureCompare base types, ignoring generic type parameters.- Specified by:
equalsIgnoringTypeParamsin classTypeSignature- Parameters:
other- the otherTypeSignatureto compare to.- Returns:
- True if the two
TypeSignatureobjects are equal, ignoring type parameters.
-
-