public class ArgumentsUtils extends Object
| Constructor and Description |
|---|
ArgumentsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getArgAt(org.eclipse.lsp4j.ExecuteCommandParams params,
int index,
Class<T> clazz)
Returns the object from the given index as a given class type and null
otherwise.
|
static Object |
getArgAt(List<Object> arguments,
int index)
Returns the object from the given index and null otherwise.
|
public static Object getArgAt(List<Object> arguments, int index)
arguments - the argument list.index - the index.public static <T> T getArgAt(org.eclipse.lsp4j.ExecuteCommandParams params,
int index,
Class<T> clazz)
T - the class typeparams - the execute command parameters.index - the indexclazz - the class type.UnsupportedOperationException - if the object from the given index
cannot be retrieved from the params.Copyright © 2023. All rights reserved.