Class GetAttr.Part.Index
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.syntax.expressions.functions.GetAttr.Part.Index
-
- All Implemented Interfaces:
GetAttr.Part
- Enclosing interface:
- GetAttr.Part
public static final class GetAttr.Part.Index extends java.lang.Object implements GetAttr.Part
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.smithy.rulesengine.language.syntax.expressions.functions.GetAttr.Part
GetAttr.Part.Index, GetAttr.Part.Key
-
-
Constructor Summary
Constructors Constructor Description Index(int index)
-
-
-
Method Detail
-
typeCheck
public Type typeCheck(Type container) throws InnerParseError
- Specified by:
typeCheck
in interfaceGetAttr.Part
- Throws:
InnerParseError
-
eval
public Value eval(Value container)
- Specified by:
eval
in interfaceGetAttr.Part
-
index
public int index()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-