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 |
|---|---|
java.util.List<Property> |
getAdditionalProperties()
Returns additional properties that are added to the referenced path.
|
ClosureOrigin |
getClosureOrigin() |
java.lang.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 java.lang.Object |
getValue()
Gets the value of the referenced element.
|
java.lang.Object |
getValue(InterpreterStackTrace stackTrace)
Gets the value of the referenced element.
|
java.lang.Object |
getValue(java.lang.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(java.lang.Object value)
Sets the value of the referenced element.
|
void |
setValue(java.lang.Object value,
InterpreterStackTrace stackTrace)
Sets the value of the referenced element.
|
getId, getNotCompiledValueHolderReferenceType getType()
ValueHoldergetType in interface ValueHolderdefault void setValue(java.lang.Object value)
throws ErrorException
value - ErrorExceptionvoid setValue(java.lang.Object value,
InterpreterStackTrace stackTrace)
throws ErrorException
value - stackTrace - a stack traceErrorExceptiondefault java.lang.Object getValue()
throws ErrorException
ErrorExceptionjava.lang.Object getValue(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace - ErrorExceptionjava.lang.String getExpressionString()
Property getProperty()
java.util.List<Property> getAdditionalProperties()
Path getPath()
default RecordHolder getPropertyRecord() throws ErrorException
ErrorExceptionRecordHolder getPropertyRecord(InterpreterStackTrace stackTrace) throws ErrorException
stackTrace - a stack traceErrorExceptionboolean isChanged()
java.lang.Object getValue(java.lang.String evaluationLevel,
InterpreterStackTrace stackTrace)
throws ErrorException
evaluationLevel - stackTrace - a stack traceErrorExceptionNamespace getNamespace()
ClosureOrigin getClosureOrigin()
nullCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.