Class Selector.StartingContext
- java.lang.Object
-
- software.amazon.smithy.model.selector.Selector.StartingContext
-
- Enclosing interface:
- Selector
public static final class Selector.StartingContext extends java.lang.Object
Starting environment context object used when evaluating a selector.
-
-
Field Summary
Fields Modifier and Type Field Description static Selector.StartingContext
DEFAULT
-
Constructor Summary
Constructors Constructor Description StartingContext()
Create a StartingContext that sends all shapes in a Model through the Selector.StartingContext(java.util.Collection<? extends Shape> startingShapes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends Shape>
getStartingShapes()
Get the potentially null set of starting shapes to provide to the selector.
-
-
-
Field Detail
-
DEFAULT
public static final Selector.StartingContext DEFAULT
-
-
Constructor Detail
-
StartingContext
public StartingContext()
Create a StartingContext that sends all shapes in a Model through the Selector.
-
StartingContext
public StartingContext(java.util.Collection<? extends Shape> startingShapes)
- Parameters:
startingShapes
- A specific set of shapes to send through the Selector rather than all Model shapes.
-
-
Method Detail
-
getStartingShapes
public java.util.Collection<? extends Shape> getStartingShapes()
Get the potentially null set of starting shapes to provide to the selector.- Returns:
- Returns the custom set starting shapes to provide to the selector.
-
-