public final class MixinTrait extends AbstractTrait implements software.amazon.smithy.utils.ToSmithyBuilder<MixinTrait>
| Modifier and Type | Class and Description |
|---|---|
static class |
MixinTrait.Builder
Builder used to create a MixinTrait.
|
static class |
MixinTrait.Provider |
| Modifier and Type | Method and Description |
|---|---|
static MixinTrait.Builder |
builder() |
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.Set<ShapeId> |
getLocalTraits()
Gets the mixin local traits.
|
static java.util.Map<ShapeId,Trait> |
getNonLocalTraitsFromMap(java.util.Map<ShapeId,Trait> traits)
Helper method used to filter out non-local traits from a map of traits.
|
MixinTrait.Builder |
toBuilder() |
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamecomparepublic static final ShapeId ID
public java.util.Set<ShapeId> getLocalTraits()
protected Node createNode()
AbstractTraitcreateNode in class AbstractTraitpublic MixinTrait.Builder toBuilder()
toBuilder in interface software.amazon.smithy.utils.ToSmithyBuilder<MixinTrait>public static java.util.Map<ShapeId,Trait> getNonLocalTraitsFromMap(java.util.Map<ShapeId,Trait> traits)
If the map is empty or does not contain a mixin trait, then it is returned as-is. If the map does contain the mixin trait, then a new map is created that does not contain any of the localTraits specified on the trait.
traits - Traits to filter based on the localTraits property of the mixin.public static MixinTrait.Builder builder()