Class Selector.ShapeMatch
- Enclosing interface:
- Selector
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 typical Map
methods like
get
, contains
, etc.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
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
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ShapeMatch
- Parameters:
shape
- Shape that matched.variables
- Variables that matched. This map is copied into ShapeMatch.
-
-
Method Details
-
getShape
Gets the matching shape.- Returns:
- Returns the matching shape.
-