Package io.github.classgraph
Class TypeArgument
- java.lang.Object
-
- io.github.classgraph.HierarchicalTypeSignature
-
- io.github.classgraph.TypeArgument
-
public class TypeArgument extends HierarchicalTypeSignature
A type argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeArgument.WildcardA type wildcard.
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected ClassInfogetClassInfo()protected java.lang.StringgetClassName()The name of the class (used bygetClassInfo()to fetch theClassInfoobject for the class).ReferenceTypeSignaturegetTypeSignature()Get the type signature associated with the wildcard (or null, if the wildcard is ANY).TypeArgument.WildcardgetWildcard()Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Method Detail
-
getWildcard
public TypeArgument.Wildcard getWildcard()
Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.- Returns:
- The type wildcard.
-
getTypeSignature
public ReferenceTypeSignature getTypeSignature()
Get the type signature associated with the wildcard (or null, if the wildcard is ANY).- Returns:
- The type signature.
-
getClassName
protected java.lang.String getClassName()
The name of the class (used bygetClassInfo()to fetch theClassInfoobject for the class).- Returns:
- The class name.
-
getClassInfo
protected ClassInfo getClassInfo()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-