Package org.apache.felix.gogo.runtime
Class Reflective
- java.lang.Object
-
- org.apache.felix.gogo.runtime.Reflective
-
public final class Reflective extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Reflective()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Object
invoke(CommandSession session, java.lang.Object target, java.lang.String name, java.util.List<java.lang.Object> args)
invokes the named method on the given target using the supplied args, which are converted if necessary.
-
-
-
Field Detail
-
NO_MATCH
public static final java.lang.Object NO_MATCH
-
MAIN
public static final java.lang.String MAIN
- See Also:
- Constant Field Values
-
KEYWORDS
public static final java.util.Set<java.lang.String> KEYWORDS
-
-
Method Detail
-
invoke
public static java.lang.Object invoke(CommandSession session, java.lang.Object target, java.lang.String name, java.util.List<java.lang.Object> args) throws java.lang.Exception
invokes the named method on the given target using the supplied args, which are converted if necessary.- Parameters:
session
-target
-name
-args
-- Returns:
- the result of the invoked method
- Throws:
java.lang.Exception
-
-