Package com.fasterxml.classmate.members
Class HierarchicType
- java.lang.Object
-
- com.fasterxml.classmate.members.HierarchicType
-
public final class HierarchicType extends java.lang.Object
Container class used to enclose information about a singleResolvedType
that is part ofResolvedTypeWithMembers
.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
_isMixin
Whether this type instance represents a mix-in; if so, it can only result in addition of annotations but not in addition of actual members.protected int
_priority
Relative priority of this type in hierarchy; higher priority members can override lower priority members.protected ResolvedType
_type
-
Constructor Summary
Constructors Constructor Description HierarchicType(ResolvedType type, boolean mixin, int priority)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Class<?>
getErasedType()
int
getPriority()
ResolvedType
getType()
int
hashCode()
boolean
isMixin()
java.lang.String
toString()
-
-
-
Field Detail
-
_isMixin
protected final boolean _isMixin
Whether this type instance represents a mix-in; if so, it can only result in addition of annotations but not in addition of actual members.
-
_type
protected final ResolvedType _type
-
_priority
protected final int _priority
Relative priority of this type in hierarchy; higher priority members can override lower priority members. Priority values are unique and are based on type index (starting from 0), although they are not to be used for indexing.
-
-
Constructor Detail
-
HierarchicType
public HierarchicType(ResolvedType type, boolean mixin, int priority)
-
-
Method Detail
-
getType
public ResolvedType getType()
-
getErasedType
public java.lang.Class<?> getErasedType()
-
isMixin
public boolean isMixin()
-
getPriority
public int getPriority()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-