Package openGql.grammar
Class OptionalOperand.ParenBlock
- java.lang.Object
-
- openGql.grammar.OptionalOperand
-
- openGql.grammar.OptionalOperand.ParenBlock
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OptionalOperand>
- Enclosing class:
- OptionalOperand
public static final class OptionalOperand.ParenBlock extends OptionalOperand implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class openGql.grammar.OptionalOperand
OptionalOperand.BraceBlock, OptionalOperand.ParenBlock, OptionalOperand.PartialVisitor<R>, OptionalOperand.Simple, OptionalOperand.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<MatchStatement>value-
Fields inherited from class openGql.grammar.OptionalOperand
BRACE_BLOCK, PAREN_BLOCK, SIMPLE, TYPE_
-
-
Constructor Summary
Constructors Constructor Description ParenBlock(java.util.List<MatchStatement> value)Constructs an immutableOptionalOperand.ParenBlock.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(OptionalOperand.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(OptionalOperand other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
value
public final java.util.List<MatchStatement> value
-
-
Constructor Detail
-
ParenBlock
public ParenBlock(java.util.List<MatchStatement> value)
Constructs an immutableOptionalOperand.ParenBlock.
-
-
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(OptionalOperand other)
- Specified by:
compareToin interfacejava.lang.Comparable<OptionalOperand>
-
accept
public <R> R accept(OptionalOperand.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classOptionalOperand
-
-