convertToTypes() statements:
convertToTypes(Matchers.only(TypeLiteral.get(DateTime.class)), new DateTimeConverter());
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final TypeConverter | |
| private final Matcher |
| Access | Constructor and Description |
|---|---|
| public | TypeConverterBinding(Object source, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter)
|
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | acceptVisitor(ElementVisitor<T>
to call back on visitor)Implements com. |
| public void | applyTo(Binder
to apply configuration element to binder)Implements com. |
| public Object | getSource()
Implements com. |
| public TypeConverter | |
| public Matcher | |
| public String |
| source | back to summary |
|---|---|
| private final Object source | |
| typeConverter | back to summary |
|---|---|
| private final TypeConverter typeConverter | |
| typeMatcher | back to summary |
|---|---|
| private final Matcher<? super TypeLiteral<?>> typeMatcher | |
| TypeConverterBinding | back to summary |
|---|---|
public TypeConverterBinding(Object source, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter)
| |
| acceptVisitor | back to summary |
|---|---|
| public <T> T acceptVisitor(ElementVisitor<T> visitor) Implements com. Doc from com. Accepts an element visitor. Invokes the visitor method specific to this element's type.
| |
| applyTo | back to summary |
|---|---|
| public void applyTo(Binder binder) Implements com. Doc from com. Writes this module element to the given binder (optional operation). | |
| getSource | back to summary |
|---|---|
| public Object getSource() Implements com. Doc from com. Returns an arbitrary object containing information about the "place" where this element was configured. Used by Guice in the production of descriptive error messages. Tools might specially handle types they know about;
| |
| getTypeConverter | back to summary |
|---|---|
| public TypeConverter getTypeConverter() | |
| getTypeMatcher | back to summary |
|---|---|
| public Matcher | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |