public static interface CommandLine.Model.IExtensible
Example usage:
// suppose we want to add a method `getInitialValueState` to `IAnnotatedElement`
IAnnotatedElement element = getAnnotatedElement();
if (element instanceof IExtensible) {
InitialValueState state = ((IExtensible) element).getExtension(InitialValueState.class);
if (state != null) {
// ...
}
}
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getExtension(Class<T> cls)
Returns an instance of the specified class, or
null if this extension is not supported. |
<T> T getExtension(Class<T> cls)
null if this extension is not supported.cls - class of the desired extension