org.tigris.gef.ocl
Class OCLEvaluator

java.lang.Object
  extended by org.tigris.gef.ocl.OCLEvaluator

public class OCLEvaluator
extends java.lang.Object


Field Summary
protected  java.util.Map _scratchBindings
           
protected  java.lang.StringBuffer _strBuf
           
static java.lang.String GET_NAME_EXPR_1
           
static java.lang.String GET_NAME_EXPR_2
           
static java.lang.String GET_OWNER_EXPR
           
static java.lang.String OCL_END
           
static java.lang.String OCL_START
           
 
Constructor Summary
protected OCLEvaluator()
           
 
Method Summary
protected  java.util.List eval(java.util.Map bindings, java.lang.String expr)
           
protected  java.lang.String evalToString(java.lang.Object self, java.lang.String expr)
           
protected  java.lang.String evalToString(java.lang.Object self, java.lang.String expr, java.lang.String sep)
           
protected  java.lang.Object getExternalProperty(java.lang.Object target, java.lang.String property)
          Returns the value of a property that is not a field of the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OCL_START

public static java.lang.String OCL_START

OCL_END

public static java.lang.String OCL_END

GET_NAME_EXPR_1

public static java.lang.String GET_NAME_EXPR_1

GET_NAME_EXPR_2

public static java.lang.String GET_NAME_EXPR_2

GET_OWNER_EXPR

public static java.lang.String GET_OWNER_EXPR

_scratchBindings

protected java.util.Map _scratchBindings

_strBuf

protected java.lang.StringBuffer _strBuf
Constructor Detail

OCLEvaluator

protected OCLEvaluator()
Method Detail

evalToString

protected java.lang.String evalToString(java.lang.Object self,
                                        java.lang.String expr)
                                 throws ExpansionException
Throws:
ExpansionException

evalToString

protected java.lang.String evalToString(java.lang.Object self,
                                        java.lang.String expr,
                                        java.lang.String sep)
                                 throws ExpansionException
Throws:
ExpansionException

eval

protected java.util.List eval(java.util.Map bindings,
                              java.lang.String expr)
                       throws ExpansionException
Throws:
ExpansionException

getExternalProperty

protected java.lang.Object getExternalProperty(java.lang.Object target,
                                               java.lang.String property)
Returns the value of a property that is not a field of the target. This method should be overwritten in a derived class.

Parameters:
target - The object to be examined.
property - The property to look after.
Returns:
null