| Modifier and Type | Method and Description |
|---|---|
| public <T> void | |
| public < The Type (as a Class) of the Facet. T> T | |
| public Collection | |
| public Object | |
| public Object | |
| public void | removeFacet(Class<?>
The class of the facet to remove. cls)Remove the facet (if any) of the given type. |
| public void |
| addFacet | back to summary |
|---|---|
| public <T> void addFacet(T obj) Add a facet to the object. The type T must not already be available as a facet. | |
| facet | back to summary |
|---|---|
| public <T> T facet(Class<T> cls) Access the Facet of Class T from the object.
| |
| facets | back to summary |
|---|---|
| public Collection Return a list of all facets on this object.
| |
| get | back to summary |
|---|---|
| public Object get(Field field) Fetch the value of the field from whichever facet contains the field. Read-only because that's all that the intended application needs. | |
| invoke | back to summary |
|---|---|
| public Object invoke(Method method, Object... args) Invoke method on the appropriate facet of this object, that is, on the facet corresponding to method.getDeclaringClass. | |
| removeFacet | back to summary |
|---|---|
| public void removeFacet(Class<?> cls) Remove the facet (if any) of the given type.
| |
| set | back to summary |
|---|---|
| public void set(Field field, Object value) | |