edu.ksu.cis.projects.bogor.module
Interface IExpEvaluator

All Superinterfaces:
Disposable, IModule
All Known Implementing Classes:
DefaultExpEvaluator

public interface IExpEvaluator
extends IModule

Version:
CVS $Revision: 1.8 $ $Date: 2005/02/06 09:15:30 $
Author:
Robby

Method Summary
 IValue evaluate(ISchedulingStrategyContext ssc, Exp exp, ISchedulingStrategyInfo ssi)
           
 IValue evaluateApply(String id, IValue[] args)
           
 IValue evaluateArrayAccess(IArrayValue arrayValue, IIntValue indexValue)
           
 IValue evaluateBinaryOp(BinaryOp binop, IDoubleValue value1, IDoubleValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, IFloatValue value1, IFloatValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, IIntValue value1, IIntValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, ILongValue value1, ILongValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, INonPrimitiveValue value1, INonPrimitiveValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, IPrimitiveExtValue value1, IPrimitiveExtValue value2)
           
 IValue evaluateBinaryOp(BinaryOp binop, IValue value1, IValue value2)
           
 IArrayValue evaluateCast(ArrayType castType, IArrayValue value)
           
 IIntValue evaluateCast(IntType castType, IDoubleValue value)
           
 IIntValue evaluateCast(IntType castType, IFloatValue value)
           
 IIntValue evaluateCast(IntType castType, IIntValue value)
           
 IIntValue evaluateCast(IntType castType, ILongValue value)
           
 ILongValue evaluateCast(LongType castType, IDoubleValue value)
           
 ILongValue evaluateCast(LongType castType, IFloatValue value)
           
 ILongValue evaluateCast(LongType castType, IIntValue value)
           
 ILongValue evaluateCast(LongType castType, ILongValue value)
           
 IRecordValue evaluateCast(RecordType castType, IRecordValue value)
           
 IValue evaluateCast(Type castType, Type valueType, IValue value)
           
 IDoubleValue evaluateCastDouble(IFloatValue value)
           
 IDoubleValue evaluateCastDouble(IIntValue value)
           
 IDoubleValue evaluateCastDouble(ILongValue value)
           
 IFloatValue evaluateCastFloat(IDoubleValue value)
           
 IFloatValue evaluateCastFloat(IIntValue value)
           
 IFloatValue evaluateCastFloat(ILongValue value)
           
 IValue evaluateExt(String expExtId, Node node, Type[] typeVarArgs, IValue[] args)
           
 IValue evaluateFieldAccess(IRecordValue value, int fieldIndex)
           
 IIntValue evaluateInstanceof(IValue value, Type instanceofType)
           
 IIntValue evaluateKindof(IValue value, Type kindofType)
           
 IValue evaluateLockTestOp(int threadId, LockTestOp locktestop, IValue value)
           
 IArrayValue evaluateNewArray(ArrayType arrayType, IValue[] lengths)
           
 ILockValue evaluateNewLock()
           
 IRecordValue evaluateNewRecord(RecordType recordType)
           
 IDoubleValue evaluateUnaryOp(UnaryOp unop, IDoubleValue value)
           
 IFloatValue evaluateUnaryOp(UnaryOp unop, IFloatValue value)
           
 IIntValue evaluateUnaryOp(UnaryOp unop, IIntValue value)
           
 ILongValue evaluateUnaryOp(UnaryOp unop, ILongValue value)
           
 IValue evaluateUnaryOp(UnaryOp unop, IValue value)
           
 void setReadFieldsTable(Map<IRecordValue,IntSet> readFieldsTable)
          Deprecated. use event framework instead
 void setReadGlobalSet(IntSet readGlobals)
          Deprecated. use event framework instead
 void setReadValueSet(Set<IValue> readRecords)
          Deprecated. use event framework instead
 Pair<ISchedulingStrategyContext,ISchedulingStrategyInfo> setSchedulingStrategyContextInfo(ISchedulingStrategyContext ssc, ISchedulingStrategyInfo ssi)
           
 Pair<ISchedulingStrategyContext,ISchedulingStrategyInfo> unsetSchedulingStrategyContextInfo()
           
 
Methods inherited from interface edu.ksu.cis.projects.bogor.module.IModule
connect, getCopyrightNotice, setOptions
 
Methods inherited from interface edu.ksu.cis.projects.bogor.util.Disposable
dispose
 

Method Detail

setReadFieldsTable

void setReadFieldsTable(Map<IRecordValue,IntSet> readFieldsTable)
Deprecated. use event framework instead


setReadGlobalSet

void setReadGlobalSet(IntSet readGlobals)
Deprecated. use event framework instead


setReadValueSet

void setReadValueSet(Set<IValue> readRecords)
Deprecated. use event framework instead


setSchedulingStrategyContextInfo

Pair<ISchedulingStrategyContext,ISchedulingStrategyInfo> setSchedulingStrategyContextInfo(ISchedulingStrategyContext ssc,
                                                                                          ISchedulingStrategyInfo ssi)
Returns:
the previous scheduling context info objects (if any)

evaluate

IValue evaluate(ISchedulingStrategyContext ssc,
                Exp exp,
                ISchedulingStrategyInfo ssi)

evaluateApply

IValue evaluateApply(String id,
                     IValue[] args)

evaluateArrayAccess

IValue evaluateArrayAccess(IArrayValue arrayValue,
                           IIntValue indexValue)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        IValue value1,
                        IValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        INonPrimitiveValue value1,
                        INonPrimitiveValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        IPrimitiveExtValue value1,
                        IPrimitiveExtValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        IIntValue value1,
                        IIntValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        ILongValue value1,
                        ILongValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        IFloatValue value1,
                        IFloatValue value2)

evaluateBinaryOp

IValue evaluateBinaryOp(BinaryOp binop,
                        IDoubleValue value1,
                        IDoubleValue value2)

evaluateCast

IValue evaluateCast(Type castType,
                    Type valueType,
                    IValue value)

evaluateCast

IIntValue evaluateCast(IntType castType,
                       IIntValue value)

evaluateCast

ILongValue evaluateCast(LongType castType,
                        ILongValue value)

evaluateCast

ILongValue evaluateCast(LongType castType,
                        IIntValue value)

evaluateCast

IIntValue evaluateCast(IntType castType,
                       ILongValue value)

evaluateCast

IIntValue evaluateCast(IntType castType,
                       IFloatValue value)

evaluateCast

IIntValue evaluateCast(IntType castType,
                       IDoubleValue value)

evaluateCast

ILongValue evaluateCast(LongType castType,
                        IFloatValue value)

evaluateCast

ILongValue evaluateCast(LongType castType,
                        IDoubleValue value)

evaluateCast

IRecordValue evaluateCast(RecordType castType,
                          IRecordValue value)

evaluateCast

IArrayValue evaluateCast(ArrayType castType,
                         IArrayValue value)

evaluateCastDouble

IDoubleValue evaluateCastDouble(IIntValue value)

evaluateCastDouble

IDoubleValue evaluateCastDouble(ILongValue value)

evaluateCastDouble

IDoubleValue evaluateCastDouble(IFloatValue value)

evaluateCastFloat

IFloatValue evaluateCastFloat(IIntValue value)

evaluateCastFloat

IFloatValue evaluateCastFloat(ILongValue value)

evaluateCastFloat

IFloatValue evaluateCastFloat(IDoubleValue value)

evaluateExt

IValue evaluateExt(String expExtId,
                   Node node,
                   Type[] typeVarArgs,
                   IValue[] args)

evaluateFieldAccess

IValue evaluateFieldAccess(IRecordValue value,
                           int fieldIndex)

evaluateInstanceof

IIntValue evaluateInstanceof(IValue value,
                             Type instanceofType)

evaluateKindof

IIntValue evaluateKindof(IValue value,
                         Type kindofType)

evaluateLockTestOp

IValue evaluateLockTestOp(int threadId,
                          LockTestOp locktestop,
                          IValue value)

evaluateNewArray

IArrayValue evaluateNewArray(ArrayType arrayType,
                             IValue[] lengths)

evaluateNewLock

ILockValue evaluateNewLock()

evaluateNewRecord

IRecordValue evaluateNewRecord(RecordType recordType)

evaluateUnaryOp

IValue evaluateUnaryOp(UnaryOp unop,
                       IValue value)

evaluateUnaryOp

IIntValue evaluateUnaryOp(UnaryOp unop,
                          IIntValue value)

evaluateUnaryOp

ILongValue evaluateUnaryOp(UnaryOp unop,
                           ILongValue value)

evaluateUnaryOp

IFloatValue evaluateUnaryOp(UnaryOp unop,
                            IFloatValue value)

evaluateUnaryOp

IDoubleValue evaluateUnaryOp(UnaryOp unop,
                             IDoubleValue value)

unsetSchedulingStrategyContextInfo

Pair<ISchedulingStrategyContext,ISchedulingStrategyInfo> unsetSchedulingStrategyContextInfo()
Returns:
the scheduling context info objects prior to unsetting (if any)