Class BasicLeftValue
- java.lang.Object
-
- com.scriptbasic.executors.leftvalues.BasicLeftValue
-
- All Implemented Interfaces:
AnalysisResult,Value,LeftValue
public class BasicLeftValue extends java.lang.Object implements LeftValue
- Author:
- Peter Verhas date June 13, 2012
-
-
Constructor Summary
Constructors Constructor Description BasicLeftValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModifier(LeftValueModifier modifier)java.lang.StringgetIdentifier()java.util.List<LeftValueModifier>getModifiers()booleanhasModifiers()voidsetIdentifier(java.lang.String identifier)voidsetValue(RightValue rightValue, Interpreter interpreter)Assign the value to the left value.
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
-
setIdentifier
public void setIdentifier(java.lang.String identifier)
-
getModifiers
public java.util.List<LeftValueModifier> getModifiers()
-
hasModifiers
public boolean hasModifiers()
-
addModifier
public void addModifier(LeftValueModifier modifier)
-
setValue
public void setValue(RightValue rightValue, Interpreter interpreter) throws ScriptBasicException
Description copied from interface:LeftValueAssign the value to the left value.- Specified by:
setValuein interfaceLeftValue- Parameters:
rightValue- the value that will be referenced by the left value after the assignmentinterpreter- the interpreter controlling the action- Throws:
ScriptBasicException- if the value can not be assigned for some reason
-
-