Class RecursiveExpression
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.RecursiveExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RecursiveExpression>
public class RecursiveExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<RecursiveExpression>
Recursive operator with path semantics- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathExpressionexpressionstatic NameEXPRESSIONName of thecom.gdblab.pathAlgebra.expressions.RecursiveExpression.expressionfield.PathSemanticssemanticsstatic NameSEMANTICSName of thecom.gdblab.pathAlgebra.expressions.RecursiveExpression.semanticsfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.RecursiveExpressiontype.
-
Constructor Summary
Constructors Constructor Description RecursiveExpression(PathSemantics semantics, PathExpression expression)Constructs an immutableRecursiveExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RecursiveExpression other)booleanequals(java.lang.Object other)inthashCode()RecursiveExpressionwithExpression(PathExpression expression)Returns a copy of thisRecursiveExpressionwithexpressionreplaced.RecursiveExpressionwithSemantics(PathSemantics semantics)Returns a copy of thisRecursiveExpressionwithsemanticsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.RecursiveExpressiontype.
-
SEMANTICS
public static final Name SEMANTICS
Name of thecom.gdblab.pathAlgebra.expressions.RecursiveExpression.semanticsfield.
-
EXPRESSION
public static final Name EXPRESSION
Name of thecom.gdblab.pathAlgebra.expressions.RecursiveExpression.expressionfield.
-
semantics
public final PathSemantics semantics
-
expression
public final PathExpression expression
-
-
Constructor Detail
-
RecursiveExpression
public RecursiveExpression(PathSemantics semantics, PathExpression expression)
Constructs an immutableRecursiveExpression.
-
-
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(RecursiveExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<RecursiveExpression>
-
withSemantics
public RecursiveExpression withSemantics(PathSemantics semantics)
Returns a copy of thisRecursiveExpressionwithsemanticsreplaced.
-
withExpression
public RecursiveExpression withExpression(PathExpression expression)
Returns a copy of thisRecursiveExpressionwithexpressionreplaced.
-
-