Class NodePropertyRef
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.NodePropertyRef
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NodePropertyRef>
public class NodePropertyRef extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<NodePropertyRef>
Reference to a node property: node.property- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathElementelementstatic NameELEMENTName of thecom.gdblab.pathAlgebra.expressions.NodePropertyRef.elementfield.java.lang.Stringpropertystatic NamePROPERTYName of thecom.gdblab.pathAlgebra.expressions.NodePropertyRef.propertyfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.NodePropertyReftype.
-
Constructor Summary
Constructors Constructor Description NodePropertyRef(PathElement element, java.lang.String property)Constructs an immutableNodePropertyRef.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(NodePropertyRef other)booleanequals(java.lang.Object other)inthashCode()NodePropertyRefwithElement(PathElement element)Returns a copy of thisNodePropertyRefwithelementreplaced.NodePropertyRefwithProperty(java.lang.String property)Returns a copy of thisNodePropertyRefwithpropertyreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.NodePropertyReftype.
-
ELEMENT
public static final Name ELEMENT
Name of thecom.gdblab.pathAlgebra.expressions.NodePropertyRef.elementfield.
-
PROPERTY
public static final Name PROPERTY
Name of thecom.gdblab.pathAlgebra.expressions.NodePropertyRef.propertyfield.
-
element
public final PathElement element
-
property
public final java.lang.String property
-
-
Constructor Detail
-
NodePropertyRef
public NodePropertyRef(PathElement element, java.lang.String property)
Constructs an immutableNodePropertyRef.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(NodePropertyRef other)
- Specified by:
compareToin interfacejava.lang.Comparable<NodePropertyRef>
-
withElement
public NodePropertyRef withElement(PathElement element)
Returns a copy of thisNodePropertyRefwithelementreplaced.
-
withProperty
public NodePropertyRef withProperty(java.lang.String property)
Returns a copy of thisNodePropertyRefwithpropertyreplaced.
-
-