Package  Description 

com.wolfram.jlink 
This is the main J/Link package, containing the classes and interfaces that programmers will use most.

Modifier and Type  Field and Description 

static Expr 
Expr.INT_MINUSONE
Unused for now.

static Expr 
Expr.INT_ONE
Unused for now.

static Expr 
Expr.INT_ZERO
Unused for now.

static Expr 
Expr.SYM_COMPLEX
Unused for now.

static Expr 
Expr.SYM_FALSE
Unused for now.

static Expr 
Expr.SYM_INTEGER
Unused for now.

static Expr 
Expr.SYM_LIST
Unused for now.

static Expr 
Expr.SYM_NULL
Unused for now.

static Expr 
Expr.SYM_RATIONAL
Unused for now.

static Expr 
Expr.SYM_REAL
Unused for now.

static Expr 
Expr.SYM_STRING
Unused for now.

static Expr 
Expr.SYM_SYMBOL
Unused for now.

static Expr 
Expr.SYM_TRUE
Unused for now.

Modifier and Type  Method and Description 

Expr[] 
Expr.args()
Gives an array of Exprs representing the arguments of this Expr.

protected Expr 
MathListener.callMathHandler(java.lang.String meth,
java.lang.Object[] args)
Derived classes call this method from their event handler methods.

static Expr 
Expr.createFromLink(MathLink ml)
This factory method will only be used by advanced programmers who are creating their own
classes that implement the MathLink interface.

Expr 
Expr.delete(int n)
Returns a new Expr that has the same head but the nth element deleted (counted from the
end if n is negative).

Expr 
KernelLink.enableObjectReferences(boolean becomeDefaultJVM)
Call this method to enable the ability to pass Java objects "by reference"
to Mathematica.

Expr 
MathLink.getExpr()
Reads an expression from the link and creates an Expr from it.

Expr 
Expr.head()
Gives a new Expr representing the head of this Expr.

Expr 
Expr.insert(Expr e,
int n)
Returns a new Expr that has the same head but with e inserted into position n (counted from the
end if n is negative).

Expr 
Expr.part(int i)
Gives a new Expr representing the specified part of this Expr.

Expr 
Expr.part(int[] ia)
Gives a new Expr representing the specified part of this Expr.

Expr 
MathLink.peekExpr()
Creates an Expr from the current expression, but does not drain it off the link.

Expr 
Expr.take(int n)
Returns a new Expr that has the same head but only the first n elements of this Expr
(or last n elements if n is negative).

Modifier and Type  Method and Description 

void 
KernelLink.evaluate(Expr e)
Sends an Expr for evaluation.

byte[] 
KernelLink.evaluateToImage(Expr e,
int width,
int height)
Sends graphics or plotting code to evaluate, then reads and discards all output
except for the image data, which is returned as a byte array of GIF data.

byte[] 
KernelLink.evaluateToImage(Expr e,
int width,
int height,
int dpi,
boolean useFE)
Sends graphics or plotting code to evaluate, then reads and discards all output
except for the image data, which is returned as a byte array of GIF data.

java.lang.String 
KernelLink.evaluateToInputForm(Expr e,
int pageWidth)
Sends an Expr to evaluate, then reads and discards all output except for the
result, which is returned.

java.lang.String 
KernelLink.evaluateToOutputForm(Expr e,
int pageWidth)
Sends an Expr to evaluate, then reads and discards all output except for the
result, which is returned.

byte[] 
KernelLink.evaluateToTypeset(Expr e,
int width,
boolean useStdForm)
Sends an Expr to evaluate, the result of which will be typeset, converted to a GIF,
and the resulting data returned.

Expr 
Expr.insert(Expr e,
int n)
Returns a new Expr that has the same head but with e inserted into position n (counted from the
end if n is negative).

Constructor and Description 

Expr(Expr head,
Expr[] args)
Creates an Expr with the given head and arguments.

Expr(Expr head,
Expr[] args)
Creates an Expr with the given head and arguments.

J/Link is Copyright (c) 19992015, Wolfram Research, Inc. All rights reserved.