public static final class Selector.ShapeMatch extends java.util.HashMap<java.lang.String,java.util.Set<Shape>>
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.
Constructor and Description |
---|
ShapeMatch(Shape shape,
java.util.Map<java.lang.String,java.util.Set<Shape>> variables) |
Modifier and Type | Method and Description |
---|---|
Shape |
getShape()
Gets the matching shape.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public Shape getShape()