# Serialized Form

## Package bsh

### Class bsh.BSHFormalComment

class BSHFormalComment extends bsh.SimpleNode implements Serializable

#### Serialized Fields

##### text

    String text

### Class bsh.BshMethod

class BshMethod extends Object implements Serializable

#### Serialized Fields

##### cparamTypes

    Class[] cparamTypes

##### creturnType

    Class creturnType

##### declaringNameSpace

    NameSpace declaringNameSpace

##### javaMethod

    Method javaMethod

##### javaObject

    Object javaObject

##### methodBody

    bsh.BSHBlock methodBody

##### modifiers

    Modifiers modifiers

##### name

    String name

##### numArgs

    int numArgs

##### paramNames

    String[] paramNames

### Class bsh.BSHPackageDeclaration

class BSHPackageDeclaration extends bsh.SimpleNode implements Serializable

### Exception Class bsh.Capabilities.Unavailable

class Unavailable extends UtilEvalError implements Serializable

### Exception Class bsh.ClassPathException

class ClassPathException extends UtilEvalError implements Serializable

### Class bsh.DelayedEvalBshMethod

class DelayedEvalBshMethod extends BshMethod implements Serializable

#### Serialized Fields

##### paramTypeDescriptors

    String[] paramTypeDescriptors

##### paramTypesNode

    bsh.BSHFormalParameters paramTypesNode

##### returnTypeDescriptor

    String returnTypeDescriptor

##### returnTypeNode

    bsh.BSHReturnType returnTypeNode

### Exception Class bsh.EvalError

class EvalError extends Exception implements Serializable

#### Serialized Fields

##### callstack

    CallStack callstack

##### message

    String message

##### node

    bsh.SimpleNode node

### Class bsh.ExternalNameSpace

class ExternalNameSpace extends NameSpace implements Serializable

#### Serialized Fields

##### externalMap

    Map externalMap

### Class bsh.Interpreter

class Interpreter extends Object implements Serializable

#### Serialization Methods

##### readObject

private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
De-serialization setup. Default out and err streams to stdout, stderr if they are null.

Throws:
  `IOException`
  `ClassNotFoundException`

#### Serialized Fields

##### console

    ConsoleInterface console

##### evalOnly

    boolean evalOnly

##### exitOnEOF

    boolean exitOnEOF

by default in interactive mode System.exit() on EOF

##### globalNameSpace

    NameSpace globalNameSpace

##### interactive

    boolean interactive

##### parent

    Interpreter parent

If this interpeter is a child of another, the parent

##### showResults

    boolean showResults

Control the verbose printing of results for the show() command.

##### sourceFileInfo

    String sourceFileInfo

The name of the file or other source that this interpreter is reading

##### strictJava

    boolean strictJava

Strict Java mode

See Also:
  - `Interpreter.setStrictJava(boolean)`

### Exception Class bsh.InterpreterError

class InterpreterError extends RuntimeException implements Serializable

### Class bsh.Modifiers

class Modifiers extends Object implements Serializable

#### Serialized Fields

##### modifiers

    Hashtable modifiers

### Class bsh.NameSpace

class NameSpace extends Object implements Serializable

#### Serialization Methods

##### writeObject

private void writeObject(ObjectOutputStream s) throws IOException

Throws:
  `IOException`

#### Serialized Fields

##### callerInfoNode

    bsh.SimpleNode callerInfoNode

The node associated with the creation of this namespace. This is used support getInvocationLine() and getInvocationText().

##### classInstance

    Object classInstance

##### classStatic

    Class classStatic

##### importedClasses

    Hashtable importedClasses

##### importedCommands

    Vector importedCommands

##### importedObjects

    Vector importedObjects

##### importedPackages

    Vector importedPackages

##### importedStatic

    Vector importedStatic

##### isClass

    boolean isClass

Note that the namespace is a class body or class instance namespace. This is used for controlling static/object import precedence, etc.

##### isMethod

    boolean isMethod

Note that the namespace is a method body namespace. This is used for printing stack traces in exceptions.

##### methods

    Hashtable methods

##### names

    Hashtable names

Name resolver objects

##### nameSourceListeners

    Vector nameSourceListeners

##### nsName

    String nsName

The name of this namespace. If the namespace is a method body namespace then this is the name of the method. If it's a class or class instance then it's the name of the class.

##### packageName

    String packageName

##### parent

    NameSpace parent

##### thisReference

    This thisReference

##### variables

    Hashtable variables

### Exception Class bsh.ParseException

class ParseException extends EvalError implements Serializable

#### Serialized Fields

##### currentToken

    Token currentToken

This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.

##### eol

    String eol

The end of line string for this machine.

##### expectedTokenSequences

    int[][] expectedTokenSequences

Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.

##### sourceFile

    String sourceFile

##### specialConstructor

    boolean specialConstructor

This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).

##### tokenImage

    String[] tokenImage

This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.

### Class bsh.Primitive

class Primitive extends Object implements Serializable

#### Serialized Fields

##### value

    Object value

The primitive value stored in its java.lang wrapper class

### Exception Class bsh.TargetError

class TargetError extends EvalError implements Serializable

#### Serialized Fields

##### inNativeCode

    boolean inNativeCode

##### target

    Throwable target

### Class bsh.This

class This extends Object implements Serializable

#### Serialized Fields

##### namespace

    NameSpace namespace

The namespace that this This reference wraps.

### Class bsh.Token

class Token extends Object implements Serializable

#### Serialized Fields

##### beginColumn

    int beginColumn

beginLine and beginColumn describe the position of the first character of this token; endLine and endColumn describe the position of the last character of this token.

##### beginLine

    int beginLine

beginLine and beginColumn describe the position of the first character of this token; endLine and endColumn describe the position of the last character of this token.

##### endColumn

    int endColumn

beginLine and beginColumn describe the position of the first character of this token; endLine and endColumn describe the position of the last character of this token.

##### endLine

    int endLine

beginLine and beginColumn describe the position of the first character of this token; endLine and endColumn describe the position of the last character of this token.

##### image

    String image

The string image of the token.

##### kind

    int kind

An integer that describes the kind of this token. This numbering system is determined by JavaCCParser, and a table of these numbers is stored in the file ...Constants.java.

##### next

    Token next

A reference to the next regular (non-special) token from the input stream. If this is the last token from the input stream, or if the token manager has not read tokens beyond this one, this field is set to null. This is true only if this token is also a regular token. Otherwise, see below for a description of the contents of this field.

##### specialToken

    Token specialToken

This field is used to access special tokens that occur prior to this token, but after the immediately preceding regular (non-special) token. If there are no such special tokens, this field is set to null. When there are more than one such special token, this field refers to the last of these special tokens, which in turn refers to the next previous special token through its specialToken field, and so on until the first special token (whose specialToken field is null). The next fields of special tokens refer to other special tokens that immediately follow it (without an intervening regular token). If there is no such token, this field is null.

### Exception Class bsh.TokenMgrError

class TokenMgrError extends Error implements Serializable

#### Serialized Fields

##### errorCode

    int errorCode

Indicates the reason why the exception is thrown. It will have one of the above 4 values.

### Exception Class bsh.UtilEvalError

class UtilEvalError extends Exception implements Serializable

### Exception Class bsh.UtilTargetError

class UtilTargetError extends UtilEvalError implements Serializable

#### Serialized Fields

##### t

    Throwable t

### Class bsh.Variable

class Variable extends Object implements Serializable

#### Serialized Fields

##### lhs

    bsh.LHS lhs

##### modifiers

    Modifiers modifiers

##### name

    String name

A null type means an untyped variable

##### type

    Class type

##### typeDescriptor

    String typeDescriptor

##### value

    Object value

### Class bsh.XThis

class XThis extends This implements Serializable

#### Serialized Fields

##### interfaces

    Hashtable interfaces

A cache of proxy interface handlers. Currently just one per interface.

## Package bsh.classpath

### Class bsh.classpath.DiscreteFilesClassLoader.ClassSourceMap

class ClassSourceMap extends HashMap implements Serializable

## Package bsh.util

### Class bsh.util.AWTConsole

class AWTConsole extends TextArea implements Serializable

#### Serialized Fields

##### histLine

    int histLine

##### history

    Vector history

##### in

    InputStream in

##### inPipe

    InputStream inPipe

##### line

    StringBuffer line

##### out

    PrintStream out

##### outPipe

    OutputStream outPipe

##### startedLine

    String startedLine

##### textLength

    int textLength

### Class bsh.util.AWTDemoApplet

class AWTDemoApplet extends Applet implements Serializable

### Class bsh.util.AWTRemoteApplet

class AWTRemoteApplet extends Applet implements Serializable

#### Serialized Fields

##### in

    InputStream in

##### out

    OutputStream out

### Class bsh.util.BshCanvas

class BshCanvas extends JComponent implements Serializable

#### Serialized Fields

##### imageBuffer

    Image imageBuffer

##### ths

    This ths

### Class bsh.util.ClassBrowser

class ClassBrowser extends JSplitPane implements Serializable

#### Serialized Fields

##### classesList

    String[] classesList

##### classlist

    JList classlist

##### classManager

    BshClassManager classManager

##### classPath

    BshClassPath classPath

##### conslist

    JList conslist

##### consList

    Constructor[] consList

##### fieldlist

    JList fieldlist

##### fieldList

    Field[] fieldList

##### frame

    JFrame frame

##### iframe

    JInternalFrame iframe

##### methodLine

    JTextArea methodLine

##### methodList

    Method[] methodList

##### mlist

    JList mlist

##### packagesList

    String[] packagesList

##### ptree

    bsh.util.ClassBrowser.PackageTree ptree

##### selectedClass

    Class selectedClass

##### selectedPackage

    String selectedPackage

##### tree

    JTree tree

### Class bsh.util.JConsole

class JConsole extends JScrollPane implements Serializable

#### Serialized Fields

##### cmdStart

    int cmdStart

##### doc

    DefaultStyledDocument doc

##### gotUp

    boolean gotUp

##### histLine

    int histLine

##### history

    Vector history

##### in

    InputStream in

##### inPipe

    InputStream inPipe

##### menu

    JPopupMenu menu

##### nameCompletion

    NameCompletion nameCompletion

##### out

    PrintStream out

##### outPipe

    OutputStream outPipe

##### SHOW_AMBIG_MAX

    int SHOW_AMBIG_MAX

##### startedLine

    String startedLine

##### text

    JTextPane text

##### ZEROS

    String ZEROS

### Class bsh.util.JDemoApplet

class JDemoApplet extends JApplet implements Serializable

### Class bsh.util.JRemoteApplet

class JRemoteApplet extends JApplet implements Serializable

#### Serialized Fields

##### in

    InputStream in

##### out

    OutputStream out

### Class bsh.util.NameCompletionTable

class NameCompletionTable extends ArrayList implements Serializable

#### Serialized Fields

##### sources

    List sources

##### table

    NameCompletionTable table

Unimplemented - need a collection here