se.jbee.inject.util
Class Producible<T>
Object
se.jbee.inject.util.Producible<T>
- All Implemented Interfaces:
- Typed<T>
public final class Producible<T>
- extends Object
- implements Typed<T>
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
returnType
public final Type<T> returnType
producer
public final Method producer
parameters
public final Parameter<?>[] parameters
instance
public final Object instance
producible
public static Producible<?> producible(Method producer,
Parameter<?>[] parameters,
Object instance)
producible
public static <T> Producible<T> producible(Type<T> returnType,
Method producer,
Parameter<?>[] parameters,
Object instance)
isInstanceMethod
public boolean isInstanceMethod()
getType
public Type<T> getType()
- Specified by:
getType in interface Typed<T>
- Returns:
- The
Type of this object.
typed
public <E> Producible<E> typed(Type<E> supertype)
- Specified by:
typed in interface Typed<T>
- Returns:
- This object with the given
Type.