Silk DI 0.6


se.jbee.inject
Class Source

Object
  extended by 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)

Field Summary
 int declarationNo
           
 
Method Summary
 Class<?> getIdent()
           
 DeclarationType getType()
           
 boolean morePreciseThan(Source other)
           
 Source next()
           
static Source source(Class<?> module)
           
 String toString()
           
 Source typed(DeclarationType type)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

declarationNo

public final int declarationNo
Method Detail

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()

Silk DI 0.6