com.fasterxml.classmate.members
Class HierarchicType

java.lang.Object
  extended by com.fasterxml.classmate.members.HierarchicType

public final class HierarchicType
extends Object

Container class used to enclose information about a single ResolvedType that is part of ResolvedTypeWithMembers.


Field Summary
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
HierarchicType(ResolvedType type, boolean mixin, int priority)
           
 
Method Summary
 boolean equals(Object o)
           
 Class<?> getErasedType()
           
 int getPriority()
           
 ResolvedType getType()
           
 int hashCode()
           
 boolean isMixin()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 Class<?> getErasedType()

isMixin

public boolean isMixin()

getPriority

public int getPriority()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © 2011 fasterxml.com. All Rights Reserved.