Package hydra.java.syntax
Class SwitchBlock.Rules
- java.lang.Object
-
- hydra.java.syntax.SwitchBlock
-
- hydra.java.syntax.SwitchBlock.Rules
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SwitchBlock>
- Enclosing class:
- SwitchBlock
public static final class SwitchBlock.Rules extends SwitchBlock implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.java.syntax.SwitchBlock
SwitchBlock.Legacy, SwitchBlock.PartialVisitor<R>, SwitchBlock.Rules, SwitchBlock.Visitor<R>
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<SwitchRule>value-
Fields inherited from class hydra.java.syntax.SwitchBlock
LEGACY, RULES, TYPE_
-
-
Constructor Summary
Constructors Constructor Description Rules(java.util.List<SwitchRule> value)Constructs an immutableSwitchBlock.Rules.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SwitchBlock.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(SwitchBlock other)booleanequals(java.lang.Object other)inthashCode()
-
-
-
Field Detail
-
value
public final java.util.List<SwitchRule> value
-
-
Constructor Detail
-
Rules
public Rules(java.util.List<SwitchRule> value)
Constructs an immutableSwitchBlock.Rules.
-
-
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(SwitchBlock other)
- Specified by:
compareToin interfacejava.lang.Comparable<SwitchBlock>
-
accept
public <R> R accept(SwitchBlock.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classSwitchBlock
-
-