Package com.fasterxml.classmate.members
Class HierarchicType
- java.lang.Object
-
- com.fasterxml.classmate.members.HierarchicType
-
public final class HierarchicType extends java.lang.ObjectContainer class used to enclose information about a singleResolvedTypethat is part ofResolvedTypeWithMembers.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean_isMixinWhether 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_priorityRelative 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 booleanequals(java.lang.Object o)java.lang.Class<?>getErasedType()intgetPriority()ResolvedTypegetType()inthashCode()booleanisMixin()java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-