Package openGql.grammar
Class ElementPatternFiller
- java.lang.Object
-
- openGql.grammar.ElementPatternFiller
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ElementPatternFiller>
public class ElementPatternFiller extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ElementPatternFiller>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameIS_LABEL_EXPRESSIONName of theopenGql.grammar.ElementPatternFiller.isLabelExpressionfield.Optional<IsLabelExpression>isLabelExpressionOptional<ElementPatternPredicate>predicatestatic NamePREDICATEName of theopenGql.grammar.ElementPatternFiller.predicatefield.static NameTYPE_Name of theopenGql.grammar.ElementPatternFillertype.static NameVARIABLE_DECLARATIONName of theopenGql.grammar.ElementPatternFiller.variableDeclarationfield.Optional<ElementVariableDeclaration>variableDeclaration
-
Constructor Summary
Constructors Constructor Description ElementPatternFiller(Optional<ElementVariableDeclaration> variableDeclaration, Optional<IsLabelExpression> isLabelExpression, Optional<ElementPatternPredicate> predicate)Constructs an immutableElementPatternFiller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ElementPatternFiller other)booleanequals(java.lang.Object other)inthashCode()ElementPatternFillerwithIsLabelExpression(Optional<IsLabelExpression> isLabelExpression)Returns a copy of thisElementPatternFillerwithisLabelExpressionreplaced.ElementPatternFillerwithPredicate(Optional<ElementPatternPredicate> predicate)Returns a copy of thisElementPatternFillerwithpredicatereplaced.ElementPatternFillerwithVariableDeclaration(Optional<ElementVariableDeclaration> variableDeclaration)Returns a copy of thisElementPatternFillerwithvariableDeclarationreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ElementPatternFillertype.
-
VARIABLE_DECLARATION
public static final Name VARIABLE_DECLARATION
Name of theopenGql.grammar.ElementPatternFiller.variableDeclarationfield.
-
IS_LABEL_EXPRESSION
public static final Name IS_LABEL_EXPRESSION
Name of theopenGql.grammar.ElementPatternFiller.isLabelExpressionfield.
-
PREDICATE
public static final Name PREDICATE
Name of theopenGql.grammar.ElementPatternFiller.predicatefield.
-
variableDeclaration
public final Optional<ElementVariableDeclaration> variableDeclaration
-
isLabelExpression
public final Optional<IsLabelExpression> isLabelExpression
-
predicate
public final Optional<ElementPatternPredicate> predicate
-
-
Constructor Detail
-
ElementPatternFiller
public ElementPatternFiller(Optional<ElementVariableDeclaration> variableDeclaration, Optional<IsLabelExpression> isLabelExpression, Optional<ElementPatternPredicate> predicate)
Constructs an immutableElementPatternFiller.
-
-
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(ElementPatternFiller other)
- Specified by:
compareToin interfacejava.lang.Comparable<ElementPatternFiller>
-
withVariableDeclaration
public ElementPatternFiller withVariableDeclaration(Optional<ElementVariableDeclaration> variableDeclaration)
Returns a copy of thisElementPatternFillerwithvariableDeclarationreplaced.
-
withIsLabelExpression
public ElementPatternFiller withIsLabelExpression(Optional<IsLabelExpression> isLabelExpression)
Returns a copy of thisElementPatternFillerwithisLabelExpressionreplaced.
-
withPredicate
public ElementPatternFiller withPredicate(Optional<ElementPatternPredicate> predicate)
Returns a copy of thisElementPatternFillerwithpredicatereplaced.
-
-