Package org.revapi.java.compilation
Class InheritedUseSite
- java.lang.Object
-
- org.revapi.java.compilation.ClassPathUseSite
-
- org.revapi.java.compilation.InheritedUseSite
-
public class InheritedUseSite extends ClassPathUseSite
A use site that was caused by an inherited element. If a use site is inherited by another type (e.g. an inherited method), the used type must also include a new use site expressing the inherited element. This class is used for precisely that.
-
-
Field Summary
Fields Modifier and Type Field Description TypeElement
inheritor
-
Fields inherited from class org.revapi.java.compilation.ClassPathUseSite
indexInParent, site, useType
-
-
-
-
Field Detail
-
inheritor
public final TypeElement inheritor
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classClassPathUseSite
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classClassPathUseSite
-
-