java.lang.Object
org.neo4j.cypherdsl.core.AliasedExpression
- All Implemented Interfaces:
Aliased
,Visitable
,Expression
,IdentifiableElement
@API(status=STABLE,
since="1.0")
public final class AliasedExpression
extends Object
implements Aliased, Expression, IdentifiableElement
An aliased expression, that deals with named expressions when accepting visitors.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@NotNull AliasedExpression
This takes the originally aliased expression and re-aliases it.@NotNull Expression
Transform this element into an expression@NotNull String
getAlias()
toString()
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, remainder, size, sorted, startsWith, subtract
-
Method Details
-
getAlias
-
as
This takes the originally aliased expression and re-aliases it. Aliases are not nested.- Specified by:
as
in interfaceExpression
- Parameters:
newAlias
- The new alias to use- Returns:
- A new aliased, expression.
-
accept
Description copied from interface:Visitable
-
asExpression
Description copied from interface:IdentifiableElement
Transform this element into an expression- Specified by:
asExpression
in interfaceIdentifiableElement
- Returns:
- this element as an expression. Will return the same instance if it is already an expression.
-
toString
Description copied from interface:Visitable
Mostvisitables
will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoString
is recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-