-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathLeftValue.java
More file actions
23 lines (21 loc) · 781 Bytes
/
Copy pathLeftValue.java
File metadata and controls
23 lines (21 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.scriptbasic.spi;
import com.scriptbasic.api.ScriptBasicException;
import com.scriptbasic.interfaces.AnalysisResult;
import com.scriptbasic.interfaces.Value;
/**
* A LeftValue is a value that can stand on the left hand side of an assignment
* command.
*
* @author Peter Verhas
*/
public interface LeftValue extends Value, AnalysisResult {
/**
* Assign the value to the left value.
*
* @param rightValue the value that will be referenced by the left value after the assignment
* @param interpreter the interpreter controlling the action
* @throws ScriptBasicException if the value can not be assigned for some reason
*/
void setValue(RightValue rightValue, Interpreter interpreter)
throws ScriptBasicException;
}