parser.absconparseur.intension
Class Evaluator

java.lang.Object
  extended by parser.absconparseur.intension.Evaluator
Direct Known Subclasses:
ArithmeticEvaluator, LogicalEvaluator, RelationalEvaluator, TerminalEvaluator

public abstract class Evaluator
extends Object


Field Summary
protected static Logger LOGGER
           
protected static long[] stack
           
protected static int top
           
 
Constructor Summary
Evaluator()
           
 
Method Summary
static void checkStackSize(int size)
           
static void displayStack()
           
abstract  void evaluate()
           
 int getArity()
           
static int getArityOf(String evaluatorToken)
           
static Class getClassOf(String evaluatorToken)
           
static int getTop()
           
static long getTopValue()
           
static boolean isAssociative(String evaluatorToken)
           
static boolean isSymmetric(String evaluatorToken)
           
static void resetTop()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER

top

protected static int top

stack

protected static long[] stack
Constructor Detail

Evaluator

public Evaluator()
Method Detail

getClassOf

public static Class getClassOf(String evaluatorToken)

getArityOf

public static int getArityOf(String evaluatorToken)

isSymmetric

public static boolean isSymmetric(String evaluatorToken)

isAssociative

public static boolean isAssociative(String evaluatorToken)

getArity

public int getArity()

getTop

public static int getTop()

resetTop

public static void resetTop()

getTopValue

public static long getTopValue()

checkStackSize

public static void checkStackSize(int size)

displayStack

public static void displayStack()

evaluate

public abstract void evaluate()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.