Package openGql.grammar
Class ParenthesizedPathPatternExpression
- java.lang.Object
-
- openGql.grammar.ParenthesizedPathPatternExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ParenthesizedPathPatternExpression>
public class ParenthesizedPathPatternExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ParenthesizedPathPatternExpression>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description PathPatternExpressionexpressionstatic NameEXPRESSIONName of theopenGql.grammar.ParenthesizedPathPatternExpression.expressionfield.static NamePATH_MODEName of theopenGql.grammar.ParenthesizedPathPatternExpression.pathModefield.Optional<PathModePrefix>pathModestatic NameSUBPATH_DECLARATIONName of theopenGql.grammar.ParenthesizedPathPatternExpression.subpathDeclarationfield.Optional<java.lang.String>subpathDeclarationstatic NameTYPE_Name of theopenGql.grammar.ParenthesizedPathPatternExpressiontype.static NameWHERE_CLAUSEName of theopenGql.grammar.ParenthesizedPathPatternExpression.whereClausefield.Optional<ValueExpression>whereClause
-
Constructor Summary
Constructors Constructor Description ParenthesizedPathPatternExpression(Optional<java.lang.String> subpathDeclaration, Optional<PathModePrefix> pathMode, PathPatternExpression expression, Optional<ValueExpression> whereClause)Constructs an immutableParenthesizedPathPatternExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ParenthesizedPathPatternExpression other)booleanequals(java.lang.Object other)inthashCode()ParenthesizedPathPatternExpressionwithExpression(PathPatternExpression expression)Returns a copy of thisParenthesizedPathPatternExpressionwithexpressionreplaced.ParenthesizedPathPatternExpressionwithPathMode(Optional<PathModePrefix> pathMode)Returns a copy of thisParenthesizedPathPatternExpressionwithpathModereplaced.ParenthesizedPathPatternExpressionwithSubpathDeclaration(Optional<java.lang.String> subpathDeclaration)Returns a copy of thisParenthesizedPathPatternExpressionwithsubpathDeclarationreplaced.ParenthesizedPathPatternExpressionwithWhereClause(Optional<ValueExpression> whereClause)Returns a copy of thisParenthesizedPathPatternExpressionwithwhereClausereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ParenthesizedPathPatternExpressiontype.
-
SUBPATH_DECLARATION
public static final Name SUBPATH_DECLARATION
Name of theopenGql.grammar.ParenthesizedPathPatternExpression.subpathDeclarationfield.
-
PATH_MODE
public static final Name PATH_MODE
Name of theopenGql.grammar.ParenthesizedPathPatternExpression.pathModefield.
-
EXPRESSION
public static final Name EXPRESSION
Name of theopenGql.grammar.ParenthesizedPathPatternExpression.expressionfield.
-
WHERE_CLAUSE
public static final Name WHERE_CLAUSE
Name of theopenGql.grammar.ParenthesizedPathPatternExpression.whereClausefield.
-
subpathDeclaration
public final Optional<java.lang.String> subpathDeclaration
-
pathMode
public final Optional<PathModePrefix> pathMode
-
expression
public final PathPatternExpression expression
-
whereClause
public final Optional<ValueExpression> whereClause
-
-
Constructor Detail
-
ParenthesizedPathPatternExpression
public ParenthesizedPathPatternExpression(Optional<java.lang.String> subpathDeclaration, Optional<PathModePrefix> pathMode, PathPatternExpression expression, Optional<ValueExpression> whereClause)
Constructs an immutableParenthesizedPathPatternExpression.
-
-
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(ParenthesizedPathPatternExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<ParenthesizedPathPatternExpression>
-
withSubpathDeclaration
public ParenthesizedPathPatternExpression withSubpathDeclaration(Optional<java.lang.String> subpathDeclaration)
Returns a copy of thisParenthesizedPathPatternExpressionwithsubpathDeclarationreplaced.
-
withPathMode
public ParenthesizedPathPatternExpression withPathMode(Optional<PathModePrefix> pathMode)
Returns a copy of thisParenthesizedPathPatternExpressionwithpathModereplaced.
-
withExpression
public ParenthesizedPathPatternExpression withExpression(PathPatternExpression expression)
Returns a copy of thisParenthesizedPathPatternExpressionwithexpressionreplaced.
-
withWhereClause
public ParenthesizedPathPatternExpression withWhereClause(Optional<ValueExpression> whereClause)
Returns a copy of thisParenthesizedPathPatternExpressionwithwhereClausereplaced.
-
-