Table of Contents
BeanShell includes a set of commands; subroutines that can be called from any script or macro. The following is a summary of those commands which may be useful within jEdit.
Java classes in plugins cannot make use of BeanShell commands
directly. However, these commands can be called from BeanShell code that
is part of a plugin, for example the snippets in
actions.xml
, or any BeanShell scripts shipped with
the plugin and loaded on startup.
void cat( | filename) ; |
String
filename
;Writes the contents of filename
to
the activity log.
void javap( | target) ; |
String | Object | Class
target
;Writes the public fields and methods of the specified class to the output stream of the current process.
void print( | arg) ; |
arg
;Writes the string value of the argument to the activity
log, or if run from the Console
plugin, to the current output window. If
arg
is an array,
print
runs itself recursively on the
array's elements.