In a Java step you can get the reference to the ParameterPageobject by calling tools. getParameterPage() . The ParameterPage class implements the Java Map interface. You can then use the keyset() method to get the list of all the keys which would be parameter names.
Please refer to Engine Help and take a look at com.pega.pegarules.pub.runtime.ParameterPage class for more information.