|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java_cup.interpreter.Exec
Class containing the implementation of the dynamic semantics of EGO
Constructor Summary | |
(package private) |
Exec()
|
Method Summary | |
(package private) static Value |
exec_addMethod(Value location,
Method_descriptor mdescr)
adds a new method to the receiver object. |
(package private) static Value |
exec_apply(Value method,
Value argument)
shows how a method is applied to its arguments. |
(package private) static Value |
exec_changeLinearity(Value location)
does not effect the memory. |
(package private) static Value |
exec_clone(Value location)
creates a new object from an existing one, location. |
(package private) static Value |
exec_delegate(Value location,
Value toDelegate)
changes the reference to the super object of the receiver object. |
(package private) static Value |
exec_invk(Value location,
java.lang.String method_name)
invokes a method on an object. |
(package private) static Value |
exec(Value method_body)
evaluates a not evaluated expression. |
(package private) static void |
substitute(Value method_body,
java.lang.String arg,
Value argument)
substitutes the variables with a value in an unevaluated expression. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
Exec()
Method Detail |
static Value exec_clone(Value location) throws BadFormedExpressionException
location
- is the cloned object.static Value exec_addMethod(Value location, Method_descriptor mdescr) throws BadFormedExpressionException
location
- the location of the receiver that will be added the method.mdescr
- the method added.static Value exec_delegate(Value location, Value toDelegate) throws BadFormedExpressionException
location
- the location that will delegate to @see toDelegatetoDelegate
- the location to be delegatedstatic Value exec_invk(Value location, java.lang.String method_name) throws BadFormedExpressionException
location
- the receiver objectmethod_name
- method name to be invokedstatic Value exec_apply(Value method, Value argument) throws BadFormedExpressionException
method
- the method to be applied to its argument @see argumentargument
- the argument to be applied to @see methodstatic Value exec_changeLinearity(Value location) throws BadFormedExpressionException
location
- location that will change the linearitystatic void substitute(Value method_body, java.lang.String arg, Value argument)
method_body
- the expression where it will take place the substitution.arg
- the variable to be substitutedargument
- the location that will substitute @see argstatic Value exec(Value method_body) throws BadFormedExpressionException
method_body
- the not evaluated expression
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |