Class Selector.ShapeMatch
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.util.Set<Shape>>
-
- software.amazon.smithy.model.selector.Selector.ShapeMatch
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.util.Set<Shape>>
- Enclosing interface:
- Selector
public static final class Selector.ShapeMatch extends java.util.HashMap<java.lang.String,java.util.Set<Shape>>
Represents a selector match found in the model.The
getShape
method is used to get the shape that matched, and all of the contextual variables that were set when the match occurred can be accessed using typicalMap
methods likeget
,contains
, etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShapeMatch(Shape shape, java.util.Map<java.lang.String,java.util.Set<Shape>> variables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shape
getShape()
Gets the matching shape.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getShape
public Shape getShape()
Gets the matching shape.- Returns:
- Returns the matching shape.
-
-