com.plotnix.jex.javascript
Class Compiler

java.lang.Object
  |
  +--com.plotnix.jex.Compiler
        |
        +--com.plotnix.jex.javascript.Compiler

public class Compiler
extends Compiler

Integrates ECMA-Script (aka JavaScript) with Jex. See Mozilla Rhino

Version:
$Revision$ $Date$
Author:
Dmitri Plotnikov

Constructor Summary
Compiler()
           
 
Method Summary
 Expression compileExpression(java.lang.String expression)
          Compiles an expression intended for evaluation that produces a value.
 IterationExpression compileIterationExpression(java.lang.String expression)
          Compiles an expression describing an iteration.
 VariableExpression compileVariableExpression(java.lang.String expression)
          Compiles an expression describing the left hand side of an assignment.
 
Methods inherited from class com.plotnix.jex.Compiler
getCompiler, getCompilerImplementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler

public Compiler()
Method Detail

compileExpression

public Expression compileExpression(java.lang.String expression)
Description copied from class: Compiler
Compiles an expression intended for evaluation that produces a value. For example, "2+2" will be a valid argument for this method for many expression languages.

May throw an UnsupportedOperationException.

Overrides:
compileExpression in class Compiler
See Also:
Compiler.compileExpression(String)

compileIterationExpression

public IterationExpression compileIterationExpression(java.lang.String expression)
Description copied from class: Compiler
Compiles an expression describing an iteration. For example, "addressBook//phone" is a valid argument for this method for an XPath compiler.

May throw an UnsupportedOperationException.

Overrides:
compileIterationExpression in class Compiler
See Also:
Compiler.compileIterationExpression(String)

compileVariableExpression

public VariableExpression compileVariableExpression(java.lang.String expression)
Description copied from class: Compiler
Compiles an expression describing the left hand side of an assignment. For example, "addressBook/contact[name="John Doe"]/phone" is a valid argument for this method for an XPath compiler.

May throw an UnsupportedOperationException.

Overrides:
compileVariableExpression in class Compiler
See Also:
Compiler.compileVariableExpression(String)


Copyright (c) 2002 - Plotnix, Inc