|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
EvaluationEnvironment
interface,
instead.
@Deprecated public interface EvaluationEnvironment
The evaluation environment keeps track of the current values of variables in the evaluation of an OCL expression.
Method Summary | |
---|---|
void |
add(String name,
Object value)
Deprecated. Adds the supplied name and value binding to the environment. |
boolean |
canEvaluate(EOperation operation,
int opcode)
Deprecated. Queries whether this evaluation environment provides a custom implementation of the specified OCL operation . |
void |
clear()
Deprecated. Clears the environment of variables. |
Object |
evaluate(EOperation operation,
int opcode,
Object target,
Object[] args)
Deprecated. Evaluates the specified operation on a given
target object with arguments. |
Object |
getValueOf(String name)
Deprecated. Returns the value associated with the supplied name |
Object |
remove(String name)
Deprecated. Removes the supplied name and binding from the environment (if it exists) and returns it. |
void |
replace(String name,
Object value)
Deprecated. Replaces the current value of the supplied name with the supplied value. |
Method Detail |
---|
Object getValueOf(String name)
name
- the name whose value is to be returned
void replace(String name, Object value)
name
- the namevalue
- the new valuevoid add(String name, Object value)
name
- the name to addvalue
- the associated bindingreplace(String, Object)
Object remove(String name)
name
- the name to remove
void clear()
boolean canEvaluate(EOperation operation, int opcode)
operation
. In the case
that the receiver does, then it must implement the
evaluate(EOperation, int, Object, Object[])
method to apply
the operation.
operation
- an OCL operationopcode
- the operation code, if one of the operations pre-defined
by OCL. Otherwise, -1
true
if this evaluation environment provides an
implementation of this operation
; false
,
otherwiseevaluate(EOperation, int, Object, Object[])
Object evaluate(EOperation operation, int opcode, Object target, Object[] args) throws UnsupportedOperationException
operation
on a given
target
object with arguments.
operation
- the operation to evaluateopcode
- the operation code, if one of the operations pre-defined
by OCL. Otherwise, -1
target
- the object on which to apply the operation
.
the target may be an EObject
or it
may not, depending on the EClassifier
typeargs
- the arguments passed to the operation
. Will
be an empty array if there are none (not null
)
null
if the operation
has no return result
UnsupportedOperationException
- if the specified
operation
is not implemented by this environmentcanEvaluate(EOperation, int)
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |