public class ReferenceExpressionHolder extends Object implements ReferenceHolder
ReferenceExpression
to ReferenceHolder
adapter. This adapter does not support
handles.sConstructor and Description |
---|
ReferenceExpressionHolder(Namespace namespace,
ReferenceType referenceType,
ReferenceExpression referenceExpression,
List<Property> additionalProperties,
ClosureOrigin origin)
Creates new instance of
ReferenceExpressionHolder . |
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.
|
String |
getId()
Returns the id of the holder if present.
|
Namespace |
getNamespace()
Returns namespace
|
ValueHolder |
getNotCompiledValueHolder() |
Path |
getPath()
Returns referenced path if a property is referenced.
|
Property |
getProperty()
Returns last referenced 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.
|
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.
|
void |
setValue(Object value,
InterpreterStackTrace stackTrace)
Sets the value of the referenced element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPropertyRecord, getValue, setValue
public ReferenceExpressionHolder(Namespace namespace, ReferenceType referenceType, ReferenceExpression referenceExpression, List<Property> additionalProperties, ClosureOrigin origin)
ReferenceExpressionHolder
.namespace
- referenceType
- referenceExpression
- additionalProperties
- origin
- public String getId()
ValueHolder
getId
in interface ValueHolder
public ReferenceType getType()
ValueHolder
getType
in interface ReferenceHolder
getType
in interface ValueHolder
public Object getValue(InterpreterStackTrace stackTrace) throws ErrorException
ReferenceHolder
getValue
in interface ReferenceHolder
ErrorException
public void setValue(Object value, InterpreterStackTrace stackTrace) throws ErrorException
ReferenceHolder
setValue
in interface ReferenceHolder
stackTrace
- a stack traceErrorException
public String getExpressionString()
ReferenceHolder
getExpressionString
in interface ReferenceHolder
public Property getProperty()
ReferenceHolder
getProperty
in interface ReferenceHolder
public List<Property> getAdditionalProperties()
ReferenceHolder
getAdditionalProperties
in interface ReferenceHolder
public Path getPath()
ReferenceHolder
getPath
in interface ReferenceHolder
public RecordHolder getPropertyRecord(InterpreterStackTrace stackTrace) throws ErrorException
ReferenceHolder
getPropertyRecord
in interface ReferenceHolder
stackTrace
- a stack traceErrorException
public boolean isChanged()
ReferenceHolder
isChanged
in interface ReferenceHolder
public Object getValue(String evaluationLevel, InterpreterStackTrace stackTrace)
ReferenceHolder
getValue
in interface ReferenceHolder
stackTrace
- a stack tracepublic Namespace getNamespace()
ReferenceHolder
getNamespace
in interface ReferenceHolder
public ValueHolder getNotCompiledValueHolder()
getNotCompiledValueHolder
in interface ValueHolder
public ClosureOrigin getClosureOrigin()
getClosureOrigin
in interface ReferenceHolder
null
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.