Package hydra.paths
Class SubtermStep.MapEntry
- java.lang.Object
-
- hydra.paths.SubtermStep
-
- hydra.paths.SubtermStep.MapEntry
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SubtermStep>
- Enclosing class:
- SubtermStep
public static final class SubtermStep.MapEntry extends SubtermStep implements java.io.Serializable
Access the map entry at the given index as a pair (k, v). Accessing this step constructs the pair; the entry is not itself a subterm occurrence, though its key and value components are, reached via pairFirst/pairSecond. Entry indexes follow the total order on serializable terms.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hydra.paths.SubtermStep
SubtermStep.AnnotatedAnnotation, SubtermStep.AnnotatedBody, SubtermStep.ApplicationArgument, SubtermStep.ApplicationFunction, SubtermStep.CasesCase, SubtermStep.CasesDefault, SubtermStep.EitherLeft, SubtermStep.EitherRight, SubtermStep.InjectField, SubtermStep.LambdaBody, SubtermStep.LetBinding, SubtermStep.LetBody, SubtermStep.ListElement, SubtermStep.MapEntry, SubtermStep.OptionalGiven, SubtermStep.PairFirst, SubtermStep.PairSecond, SubtermStep.PartialVisitor<R>, SubtermStep.RecordField, SubtermStep.SetElement, SubtermStep.TypeApplicationBody, SubtermStep.TypeLambdaBody, SubtermStep.Visitor<R>, SubtermStep.WrapBody
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Integervalue-
Fields inherited from class hydra.paths.SubtermStep
ANNOTATED_ANNOTATION, ANNOTATED_BODY, APPLICATION_ARGUMENT, APPLICATION_FUNCTION, CASES_CASE, CASES_DEFAULT, EITHER_LEFT, EITHER_RIGHT, INJECT_FIELD, LAMBDA_BODY, LET_BINDING, LET_BODY, LIST_ELEMENT, MAP_ENTRY, OPTIONAL_GIVEN, PAIR_FIRST, PAIR_SECOND, RECORD_FIELD, SET_ELEMENT, TYPE_, TYPE_APPLICATION_BODY, TYPE_LAMBDA_BODY, WRAP_BODY
-
-
Constructor Summary
Constructors Constructor Description MapEntry(java.lang.Integer value)Constructs an immutableSubtermStep.MapEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(SubtermStep.Visitor<R> visitor)Dispatch tovisitor.intcompareTo(SubtermStep other)booleanequals(java.lang.Object other)inthashCode()inthydraOrdinal()java.lang.StringtoString()
-
-
-
Constructor Detail
-
MapEntry
public MapEntry(java.lang.Integer value)
Constructs an immutableSubtermStep.MapEntry.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(SubtermStep other)
- Specified by:
compareToin interfacejava.lang.Comparable<SubtermStep>
-
hydraOrdinal
public int hydraOrdinal()
- Specified by:
hydraOrdinalin classSubtermStep
-
accept
public <R> R accept(SubtermStep.Visitor<R> visitor)
Dispatch tovisitor.- Specified by:
acceptin classSubtermStep
-
-