Skip to content
drieu edited this page Apr 18, 2013 · 2 revisions

WARNING : IT'S A DRAFT !

Objectives

Store an object in variable and add the possibility to call method, to set attribute by completion. To do that, we will follow this steps :

  1. Find object
  2. Define a variable
  3. Completion on this object

Retreive list of all object available in the JVM

TODO : see if possible. With this command, you will list all class available.

List all class

%lsObject

List all class of a classloader

%lsObject --classloader

Put an object in a variable

def var = org.apache.log4j$

Call attribute, method.

By using the dot ".", you will see all available methods and attribute :

%def var = org.apache.log4j$ %var.[TAB]