se.jbee.inject
Class Source
Object
se.jbee.inject.Source
- All Implemented Interfaces:
- PreciserThan<Source>
public final class Source
- extends Object
- implements PreciserThan<Source>
Where does a bind come from and what type of declaration has it been.
- Author:
- Jan Bernitt (jan@jbee.se)
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
declarationNo
public final int declarationNo
source
public static Source source(Class<?> module)
getIdent
public Class<?> getIdent()
getType
public DeclarationType getType()
toString
public String toString()
- Overrides:
toString in class Object
morePreciseThan
public boolean morePreciseThan(Source other)
- Specified by:
morePreciseThan in interface PreciserThan<Source>
- Returns:
- Whether or not this object or more precise than the given one. Equal objects are not
more precise! Also objects that have no common context or relationship are never more
precise. An example would be that two
Types with no common super-type do not
define one of them that is more precise.
typed
public Source typed(DeclarationType type)
next
public Source next()