Package io.determann.shadow.impl.shadow
Class DeclaredImpl
java.lang.Object
io.determann.shadow.impl.shadow.ShadowImpl<DeclaredType>
io.determann.shadow.impl.shadow.DeclaredImpl
- All Implemented Interfaces:
Annotationable<TypeElement>,ApiHolder,ElementBacked<TypeElement>,MirrorBacked<DeclaredType>,AccessModifiable,Modifiable,StaticModifiable,StrictfpModifiable,QualifiedNameable<TypeElement>,Annotation,Declared,Enum,Shadow<DeclaredType>
- Direct Known Subclasses:
AnnotationUsageImpl,ClassImpl,InterfaceImpl,RecordImpl
-
Constructor Summary
ConstructorsConstructorDescriptionDeclaredImpl(ShadowApi shadowApi, TypeElement typeElement) DeclaredImpl(ShadowApi shadowApi, DeclaredType declaredTypeMirror) -
Method Summary
Modifier and TypeMethodDescriptionasArray()String -> String[]booleanbe careful using this equalspart of the java language specification:getDirectInterfaceOrThrow(String qualifiedName) returns the parentClass including interfacesgetEnumConstantOrThrow(String simpleName) getFieldOrThrow(String simpleName) getInterfaceOrThrow(String qualifiedName) getMethods(String simpleName) is it an outer or inner class?returns all distinct supertypes including interfacesinthashCode()booleanisSubtypeOf(Shadow<? extends TypeMirror> shadow) returns true if this can be cast to that.toString()Methods inherited from class io.determann.shadow.impl.shadow.ShadowImpl
getApi, getMirror, isTypeKind, representsSameTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.determann.shadow.api.modifier.AccessModifiable
isPackagePrivate, isPrivate, isProtected, isPublicMethods inherited from interface io.determann.shadow.api.Annotationable
getAnnotationUsages, getDirectAnnotationUsages, getDirectUsageOf, getDirectUsageOfOrThrow, getDirectUsagesOf, getUsageOf, getUsageOfOrThrow, getUsagesOf, isAnnotatedWith, isDirectlyAnnotatedWithMethods inherited from interface io.determann.shadow.api.ElementBacked
getJavaDoc, getModifiers, getModule, getSimpleName, logError, logInfo, logWarningMethods inherited from interface io.determann.shadow.api.modifier.Modifiable
hasModifierMethods inherited from interface io.determann.shadow.api.QualifiedNameable
getQualifiedNameMethods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, isTypeKind, representsSameTypeMethods inherited from interface io.determann.shadow.api.modifier.StaticModifiable
isStaticMethods inherited from interface io.determann.shadow.api.modifier.StrictfpModifiable
isStrictfp
-
Constructor Details
-
DeclaredImpl
-
DeclaredImpl
-
-
Method Details
-
isSubtypeOf
Description copied from interface:Declaredreturns 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 interfaceDeclared
-
getTypeKind
- Specified by:
getTypeKindin interfaceShadow<DeclaredType>
-
getElement
- Specified by:
getElementin interfaceElementBacked<TypeElement>
-
getNesting
Description copied from interface:Declaredis it an outer or inner class? etc.- Specified by:
getNestingin interfaceDeclared
-
getFieldOrThrow
- Specified by:
getFieldOrThrowin interfaceDeclared
-
getFields
-
getMethods
- Specified by:
getMethodsin interfaceDeclared
-
getMethods
- Specified by:
getMethodsin interfaceDeclared
-
getConstructors
- Specified by:
getConstructorsin interfaceDeclared
-
getDirectSuperTypes
Description copied from interface:Declaredreturns the parentClass including interfaces- Specified by:
getDirectSuperTypesin interfaceDeclared
-
getSuperTypes
Description copied from interface:Declaredreturns all distinct supertypes including interfaces- Specified by:
getSuperTypesin interfaceDeclared
-
getBinaryName
Description copied from interface:Declaredpart of the java language specification:The binary name of a top level type is its canonical name. (qualified name) The binary name of a member type consists of the binary name of its immediately enclosing type, followed by $, followed by the simple name of the member.
- Specified by:
getBinaryNamein interfaceDeclared
-
asExtendsWildcard
- Specified by:
asExtendsWildcardin interfaceDeclared
-
asSuperWildcard
- Specified by:
asSuperWildcardin interfaceDeclared
-
asArray
Description copied from interface:DeclaredString -> String[] -
getDirectInterfaces
- Specified by:
getDirectInterfacesin interfaceDeclared
-
getInterfaces
- Specified by:
getInterfacesin interfaceDeclared
-
getInterfaceOrThrow
- Specified by:
getInterfaceOrThrowin interfaceDeclared
-
getDirectInterfaceOrThrow
- Specified by:
getDirectInterfaceOrThrowin interfaceDeclared
-
getEumConstants
- Specified by:
getEumConstantsin interfaceEnum
-
getEnumConstantOrThrow
- Specified by:
getEnumConstantOrThrowin interfaceEnum
-
getPackage
- Specified by:
getPackagein interfaceDeclared
-
toString
- Overrides:
toStringin classShadowImpl<DeclaredType>
-
hashCode
public int hashCode() -
equals
Description copied from interface:Annotationbe careful using this equals
-