Package io.determann.shadow.impl.shadow
Class ShadowImpl<MIRROR extends TypeMirror>
java.lang.Object
io.determann.shadow.impl.shadow.ShadowImpl<MIRROR>
- All Implemented Interfaces:
ApiHolder,MirrorBacked<MIRROR>,Shadow<MIRROR>
- Direct Known Subclasses:
ArrayImpl,DeclaredImpl,ExecutableImpl,GenericImpl,IntersectionImpl,ModuleImpl,NullImpl,PackageImpl,PrimitiveImpl,RecordComponentImpl,VariableImpl,VoidImpl,WildcardImpl
public abstract class ShadowImpl<MIRROR extends TypeMirror>
extends Object
implements Shadow<MIRROR>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApi()booleanisTypeKind(TypeKind typeKind) booleanrepresentsSameType(Shadow<? extends TypeMirror> shadow) type equals from the compiler perspective. for example ?toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.determann.shadow.api.shadow.Shadow
equals, getTypeKind
-
Constructor Details
-
ShadowImpl
-
-
Method Details
-
isTypeKind
- Specified by:
isTypeKindin interfaceShadow<MIRROR extends TypeMirror>
-
representsSameType
Description copied from interface:Shadowtype equals from the compiler perspective. for example ? does not equal ? for the compiler. use this method to compareShadows when ever possible.Shadow.equals(Object)should only be used to compare the technical aspect of two objects. for example in a list implementation.- Specified by:
representsSameTypein interfaceShadow<MIRROR extends TypeMirror>
-
getMirror
- Specified by:
getMirrorin interfaceMirrorBacked<MIRROR extends TypeMirror>- Specified by:
getMirrorin interfaceShadow<MIRROR extends TypeMirror>
-
getApi
-
toString
-