Package io.github.classgraph
Class TypeArgument
- java.lang.Object
-
- io.github.classgraph.HierarchicalTypeSignature
-
- io.github.classgraph.TypeArgument
-
public final class TypeArgument extends HierarchicalTypeSignature
A type argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypeArgument.Wildcard
A type wildcard.
-
Field Summary
Fields Modifier and Type Field Description protected ScanResult
scanResult
The scan result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected ClassInfo
getClassInfo()
protected java.lang.String
getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object for the class).ReferenceTypeSignature
getTypeSignature()
Get the type signature associated with the wildcard (or null, if the wildcard is ANY).TypeArgument.Wildcard
getWildcard()
Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringWithSimpleNames()
toString()
with simple names for classes.
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
The scan result.
-
-
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 theClassInfo
object for the class).- Returns:
- The class name.
-
getClassInfo
protected ClassInfo getClassInfo()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toStringWithSimpleNames
public java.lang.String toStringWithSimpleNames()
toString()
with simple names for classes.- Returns:
- the string
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-