InvokeMethod

class InvokeMethod(val className: String, val methodName: String, val parameterClasses: List<String>, val parameterValues: List<ByteArray>, val returnClass: String) : ReflectionChecker.ReflectionCheck

Invoke method check aims to try to invoke a function in a class with the provided parameters. The parameterValues are turned into an object using java.io.ObjectInputStream.readObject function.

Constructors

Link copied to clipboard
constructor(className: String, methodName: String, parameterClasses: List<String>, parameterValues: List<ByteArray>, returnClass: String)

Properties

Link copied to clipboard

the full name of the class in which the function lies.

Link copied to clipboard

the name of the function to invoke.

Link copied to clipboard

the types of the parameters that the function takes.

Link copied to clipboard

the values to pass into the function, represented as a serialized byte array.

Link copied to clipboard

the full name of the return type class

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String