com.saxonica.bytecode.util
Class CompilerClassMapper

java.lang.Object
  extended by com.saxonica.bytecode.util.CompilerClassMapper

public class CompilerClassMapper
extends Object

For each class of expression found on the expression tree, deliver a corresponding instance of the helper class used to generate Java code for the expression


Field Summary
static HashMap<Class<? extends Expression>,ExpressionCompiler> map
           
 
Constructor Summary
CompilerClassMapper()
           
 
Method Summary
static ExpressionCompiler map(Expression exp)
          Find the expression compiler appropriate to a particular expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public static HashMap<Class<? extends Expression>,ExpressionCompiler> map
Constructor Detail

CompilerClassMapper

public CompilerClassMapper()
Method Detail

map

public static ExpressionCompiler map(Expression exp)
                              throws CannotCompileException
Find the expression compiler appropriate to a particular expression

Parameters:
exp - the expression to be compiled
Returns:
the relevant ExpressionCompiler
Throws:
CannotCompileException - if the expression cannot be compiled


Copyright (c) 2004-2011 Saxonica Limited. All rights reserved.