public class CLIReflectionUtil extends Object
Created by Jeff Gaynor
on 5/21/13 at 2:28 PM
Constructor and Description |
---|
CLIReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static String[] |
getCommandsNameList(Commands[] commands)
This snoops through the CCI and gets those methods that are not
in Java.lang.Object, are public and are not static.
|
static boolean |
hasRightSignature(Method method)
Checks that the method has the correct signature for the contract in the Commands interface,
i.e.
|
static void |
invokeMethod(Commands obj,
String name,
InputLine cliAV)
Invokes the named method on the object.
|
static boolean |
isJavaObjectMethod(String methodName,
int mods)
Returns true if the methodName is one of the java.lang.Object basic methods (e.g.
|
public static boolean isJavaObjectMethod(String methodName, int mods)
methodName
- mods
- public static void invokeMethod(Commands obj, String name, InputLine cliAV) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
Commands
interface.obj
- name
- cliAV
- NoSuchMethodException
InvocationTargetException
IllegalAccessException
public static String[] getCommandsNameList(Commands[] commands)
public static boolean hasRightSignature(Method method)
method
- Copyright © 2019. All Rights Reserved.