Package io.determann.shadow.impl.shadow
Class ArrayImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasArray()String[] -> String[][]booleanbe careful using this equalserasure()Information regarding generics is lost after the compilation.String[]returns Object[] for declared arrays and anIntersectionofjava.io.Serializable&java.lang.Cloneablefor primitivesinthashCode()booleanisSubtypeOf(Shadow<? extends TypeMirror> shadow) returns true if this can be cast to that.Methods inherited from class io.determann.shadow.impl.shadow.ShadowImpl
getApi, getMirror, isTypeKind, representsSameType, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, isTypeKind, representsSameType
-
Constructor Details
-
ArrayImpl
-
-
Method Details
-
isSubtypeOf
Description copied from interface:Arrayreturns true if this can be cast to that. This can be useful if you want to check if a shadow implements for example aCollectionshadowToTest.erasure().isSubtypeOf(shadowApi.getDeclaredOrThrow("java.util.Collection").erasure())- Specified by:
isSubtypeOfin interfaceArray
-
getComponentType
Description copied from interface:ArrayString[]- Specified by:
getComponentTypein interfaceArray
-
getDirectSuperTypes
Description copied from interface:Arrayreturns Object[] for declared arrays and anIntersectionofjava.io.Serializable&java.lang.Cloneablefor primitives- Specified by:
getDirectSuperTypesin interfaceArray
-
erasure
Description copied from interface:ArrayInformation regarding generics is lost after the compilation. For ExampleList<String>becomesList. This method Does the same. This can be useful if you want to check if a shadow implements for exampleCollectionshadowToTest.erasure().isSubtypeOf(shadowApi.getDeclaredOrThrow("java.util.Collection").erasure())for
Arrays this means for exampleT[]->java.lang.Object[] -
asExtendsWildcard
- Specified by:
asExtendsWildcardin interfaceArray
-
asSuperWildcard
- Specified by:
asSuperWildcardin interfaceArray
-
asArray
Description copied from interface:ArrayString[] -> String[][] -
getTypeKind
- Specified by:
getTypeKindin interfaceShadow<ArrayType>
-
hashCode
public int hashCode() -
equals
Description copied from interface:Arraybe careful using this equals
-