Package org.neo4j.cypherdsl.core
Class SymbolicName
- java.lang.Object
-
- org.neo4j.cypherdsl.core.SymbolicName
-
- All Implemented Interfaces:
Expression,Visitable
@API(status=EXPERIMENTAL, since="1.0") public class SymbolicName extends java.lang.Object implements ExpressionA symbolic name to identify nodes, relationships and aliased items.While OpenCypher extends the UNICODE IDENTIFIER AND PATTERN SYNTAX with some characters, this DSL uses the same identifier Java itself uses for simplicity and until otherwise needed.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SymbolicNameconcat(java.lang.String otherValue)Creates a new symbolic name by concatenatingotherValueto this names value.booleanequals(java.lang.Object o)java.lang.StringgetValue()inthashCode()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getValue
public java.lang.String getValue()
-
concat
public SymbolicName concat(java.lang.String otherValue)
Creates a new symbolic name by concatenatingotherValueto this names value. Returns this ifotherValueis empty.- Parameters:
otherValue- The value to concat.- Returns:
- A new symbolic name
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-