org.sourceforge.beanindex.postfix
Class PostFixExecutionEngine

java.lang.Object
  extended byorg.sourceforge.beanindex.postfix.PostFixExecutionEngine

public class PostFixExecutionEngine
extends java.lang.Object

Author:
Sakthivel Muthusamy

Constructor Summary
PostFixExecutionEngine()
           
 
Method Summary
 int[] execute(Token[] expTokens)
          * This method takes an Expression parsed into tokens and returns the final result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostFixExecutionEngine

public PostFixExecutionEngine()
Method Detail

execute

public int[] execute(Token[] expTokens)
              throws java.lang.IllegalArgumentException
* This method takes an Expression parsed into tokens and returns the final result. This method should be called with atleast three tokens in the expression token list. One opcode + two operands.

Parameters:
expTokens -
Returns:
int[] @throws IllegalArgumentException
Throws:
java.lang.IllegalArgumentException