Package io.determann.shadow.api.shadow
Interface Declared
- All Superinterfaces:
AccessModifiable,Annotationable<TypeElement>,ApiHolder,ElementBacked<TypeElement>,MirrorBacked<DeclaredType>,Modifiable,QualifiedNameable<TypeElement>,Shadow<DeclaredType>,StrictfpModifiable
- All Known Subinterfaces:
Annotation,AnnotationUsage,Class,Enum,Interface,Record
- All Known Implementing Classes:
AnnotationUsageImpl,ClassImpl,DeclaredImpl,InterfaceImpl,RecordImpl
public interface Declared
extends Shadow<DeclaredType>, Annotationable<TypeElement>, AccessModifiable, StrictfpModifiable, QualifiedNameable<TypeElement>
Anything that can be a file. Can be converted into the following using
ShadowApi.convert(Declared)
-
Method Summary
Modifier and TypeMethodDescriptionasArray()String -> String[]booleanbe careful using this equalspart of the java language specification:getDirectInterfaceOrThrow(String qualifiedName) returns the parentClass including interfacesgetFieldOrThrow(String simpleName) getInterfaceOrThrow(String qualifiedName) getMethods(String simpleName) is it an outer or inner class?returns all distinct supertypes including interfacesbooleanisSubtypeOf(Shadow<? extends TypeMirror> shadow) returns true if this can be cast to that.Methods 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
getElement, 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, getTypeKind, isTypeKind, representsSameTypeMethods inherited from interface io.determann.shadow.api.modifier.StrictfpModifiable
isStrictfp
-
Method Details
-
isSubtypeOf
returns 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()) -
getNesting
NestingKind getNesting()is it an outer or inner class? etc. -
getFieldOrThrow
-
getFields
-
getMethods
-
getMethods
-
getConstructors
List<Constructor> getConstructors() -
getDirectSuperTypes
returns the parentClass including interfaces -
getSuperTypes
returns all distinct supertypes including interfaces -
getInterfaces
-
getInterfaceOrThrow
-
getDirectInterfaces
-
getDirectInterfaceOrThrow
-
getPackage
Package getPackage() -
getBinaryName
String getBinaryName()part 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.
-
asExtendsWildcard
Wildcard asExtendsWildcard() -
asSuperWildcard
Wildcard asSuperWildcard() -
asArray
Array asArray()String -> String[] -
equals
be careful using this equals- Specified by:
equalsin interfaceShadow<DeclaredType>- Overrides:
equalsin classObject- See Also:
-