- All Known Subinterfaces:
Case,Case.CaseEnding,Case.GenericCase,Case.SimpleCase,Condition,Expression,Literal<T>,Node,Property,PropertyContainer,Relationship,SubqueryExpression
- All Known Implementing Classes:
AliasedExpression,Asterisk,BooleanLiteral,CollectExpression,Comparison,ConstantCondition,CountExpression,ExistentialSubquery,FunctionInvocation,HasLabelCondition,KeyValueMapEntry,ListComprehension,ListExpression,ListLiteral,ListOperator,MapExpression,MapLiteral,MapProjection,NestedExpression,NodeBase,NullLiteral,NumberLiteral,Operation,Parameter,PatternComprehension,PropertyLookup,RelationshipBase,StringLiteral,SymbolicName,TemporalLiteral
@API(status=STABLE,
since="2024.1.0")
public interface PropertyAccessor
This interface represents an element that has properties.
- Since:
- 2024.1.0
- Author:
- Andreas Berger, Michael J. Simons
-
Method Summary
-
Method Details
-
property
Creates a newPropertyassociated with this element. This property can be used as a lookup in other expressions. It does not add a value to the property.Note: The element does not track property creation and there is no possibility to enumerate all properties that have been created for this property container.
- Parameters:
name- property name, must not be null or empty.- Returns:
- a new
Propertyassociated with this element
-
property
- Parameters:
names- a list of nested property names- Returns:
- a new
Propertyassociated with this element - See Also:
-
property
Creates a newPropertyassociated with this element. This property can be used as a lookup in other expressions. It does not add a value to the property.The new
Propertyobject is a dynamic lookup, based on theexpressionpassed to this method. The expression can be example another property, a function result or a Cypher parameter. A property defined in such a way will render asp[expression].Note: The element does not track property creation and there is no possibility to enumerate all properties that have been created for this property container.
- Parameters:
lookup- the expression that is evaluated to lookup this property.- Returns:
- a new
Propertyassociated with this element
-