public interface ReferenceHolder extends ValueHolder
ReferenceType
must implement this interface.
References point to a variable or a field of a record. The value can be both
read and written.Modifier and Type | Method and Description |
---|---|
List<Property> |
getAdditionalProperties()
Returns additional properties that are added to the referenced path.
|
ClosureOrigin |
getClosureOrigin() |
String |
getExpressionString()
Returns a string representation of this reference holder expression.
|
Namespace |
getNamespace()
Returns namespace
|
Path |
getPath()
Returns referenced path if a property is referenced.
|
Property |
getProperty()
Returns last referenced property if a property is referenced.
|
default RecordHolder |
getPropertyRecord()
Returns root record for the property if a property is referenced.
|
RecordHolder |
getPropertyRecord(InterpreterStackTrace stackTrace)
Returns root record for the property if a property is referenced.
|
ReferenceType |
getType()
Returns the type of the holder.
|
default Object |
getValue()
Gets the value of the referenced element.
|
Object |
getValue(InterpreterStackTrace stackTrace)
Gets the value of the referenced element.
|
Object |
getValue(String evaluationLevel,
InterpreterStackTrace stackTrace)
Returns value of referenced value-holder (variable/record) in the specified evaluation level.
|
boolean |
isChanged()
Returns true if referenced place holder has changed value.
|
default void |
setValue(Object value)
Sets the value of the referenced element.
|
void |
setValue(Object value,
InterpreterStackTrace stackTrace)
Sets the value of the referenced element.
|
getId, getNotCompiledValueHolder
ReferenceType getType()
ValueHolder
getType
in interface ValueHolder
default void setValue(Object value) throws ErrorException
value
- ErrorException
void setValue(Object value, InterpreterStackTrace stackTrace) throws ErrorException
value
- stackTrace
- a stack traceErrorException
default Object getValue() throws ErrorException
ErrorException
Object getValue(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace
- ErrorException
String getExpressionString()
Property getProperty()
List<Property> getAdditionalProperties()
Path getPath()
default RecordHolder getPropertyRecord() throws ErrorException
ErrorException
RecordHolder getPropertyRecord(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace
- a stack traceErrorException
boolean isChanged()
Object getValue(String evaluationLevel, InterpreterStackTrace stackTrace) throws ErrorException
evaluationLevel
- stackTrace
- a stack traceErrorException
Namespace getNamespace()
ClosureOrigin getClosureOrigin()
null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.