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, getNotCompiledValueHolderReferenceType getType()
ValueHoldergetType in interface ValueHolderdefault void setValue(Object value) throws ErrorException
value - ErrorExceptionvoid setValue(Object value, InterpreterStackTrace stackTrace) throws ErrorException
value - stackTrace - a stack traceErrorExceptiondefault Object getValue() throws ErrorException
ErrorExceptionObject getValue(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace - ErrorExceptionString getExpressionString()
Property getProperty()
List<Property> getAdditionalProperties()
Path getPath()
default RecordHolder getPropertyRecord() throws ErrorException
ErrorExceptionRecordHolder getPropertyRecord(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace - a stack traceErrorExceptionboolean isChanged()
Object getValue(String evaluationLevel, InterpreterStackTrace stackTrace) throws ErrorException
evaluationLevel - stackTrace - a stack traceErrorExceptionNamespace getNamespace()
ClosureOrigin getClosureOrigin()
nullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.