Class ShapeVisitor.Default<R>
- java.lang.Object
-
- software.amazon.smithy.model.shapes.ShapeVisitor.Default<R>
-
- Type Parameters:
R
- Return type.
- All Implemented Interfaces:
ShapeVisitor<R>
- Enclosing interface:
- ShapeVisitor<R>
public abstract static class ShapeVisitor.Default<R> extends java.lang.Object implements ShapeVisitor<R>
CreatesShapeVisitor
that return a value when necessary when visiting shapes.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface software.amazon.smithy.model.shapes.ShapeVisitor
ShapeVisitor.DataShapeVisitor<R>, ShapeVisitor.Default<R>
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description R
bigDecimalShape(BigDecimalShape shape)
R
bigIntegerShape(BigIntegerShape shape)
R
blobShape(BlobShape shape)
R
booleanShape(BooleanShape shape)
R
byteShape(ByteShape shape)
R
documentShape(DocumentShape shape)
R
doubleShape(DoubleShape shape)
R
floatShape(FloatShape shape)
protected abstract R
getDefault(Shape shape)
Returns a value for any unhandled shape.R
integerShape(IntegerShape shape)
R
listShape(ListShape shape)
R
longShape(LongShape shape)
R
mapShape(MapShape shape)
R
memberShape(MemberShape shape)
R
operationShape(OperationShape shape)
R
resourceShape(ResourceShape shape)
R
serviceShape(ServiceShape shape)
R
shortShape(ShortShape shape)
R
stringShape(StringShape shape)
R
structureShape(StructureShape shape)
R
timestampShape(TimestampShape shape)
R
unionShape(UnionShape shape)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.smithy.model.shapes.ShapeVisitor
enumShape, intEnumShape, setShape
-
-
-
-
Method Detail
-
getDefault
protected abstract R getDefault(Shape shape)
Returns a value for any unhandled shape.- Parameters:
shape
- Shape that is being visited.- Returns:
- Return value.
-
blobShape
public R blobShape(BlobShape shape)
- Specified by:
blobShape
in interfaceShapeVisitor<R>
-
booleanShape
public R booleanShape(BooleanShape shape)
- Specified by:
booleanShape
in interfaceShapeVisitor<R>
-
listShape
public R listShape(ListShape shape)
- Specified by:
listShape
in interfaceShapeVisitor<R>
-
byteShape
public R byteShape(ByteShape shape)
- Specified by:
byteShape
in interfaceShapeVisitor<R>
-
shortShape
public R shortShape(ShortShape shape)
- Specified by:
shortShape
in interfaceShapeVisitor<R>
-
integerShape
public R integerShape(IntegerShape shape)
- Specified by:
integerShape
in interfaceShapeVisitor<R>
-
longShape
public R longShape(LongShape shape)
- Specified by:
longShape
in interfaceShapeVisitor<R>
-
floatShape
public R floatShape(FloatShape shape)
- Specified by:
floatShape
in interfaceShapeVisitor<R>
-
documentShape
public R documentShape(DocumentShape shape)
- Specified by:
documentShape
in interfaceShapeVisitor<R>
-
doubleShape
public R doubleShape(DoubleShape shape)
- Specified by:
doubleShape
in interfaceShapeVisitor<R>
-
bigIntegerShape
public R bigIntegerShape(BigIntegerShape shape)
- Specified by:
bigIntegerShape
in interfaceShapeVisitor<R>
-
bigDecimalShape
public R bigDecimalShape(BigDecimalShape shape)
- Specified by:
bigDecimalShape
in interfaceShapeVisitor<R>
-
mapShape
public R mapShape(MapShape shape)
- Specified by:
mapShape
in interfaceShapeVisitor<R>
-
operationShape
public R operationShape(OperationShape shape)
- Specified by:
operationShape
in interfaceShapeVisitor<R>
-
resourceShape
public R resourceShape(ResourceShape shape)
- Specified by:
resourceShape
in interfaceShapeVisitor<R>
-
serviceShape
public R serviceShape(ServiceShape shape)
- Specified by:
serviceShape
in interfaceShapeVisitor<R>
-
stringShape
public R stringShape(StringShape shape)
- Specified by:
stringShape
in interfaceShapeVisitor<R>
-
structureShape
public R structureShape(StructureShape shape)
- Specified by:
structureShape
in interfaceShapeVisitor<R>
-
unionShape
public R unionShape(UnionShape shape)
- Specified by:
unionShape
in interfaceShapeVisitor<R>
-
memberShape
public R memberShape(MemberShape shape)
- Specified by:
memberShape
in interfaceShapeVisitor<R>
-
timestampShape
public R timestampShape(TimestampShape shape)
- Specified by:
timestampShape
in interfaceShapeVisitor<R>
-
-