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>
Creates
ShapeVisitor
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
-
Method Summary
Modifier and TypeMethodDescriptionbigDecimalShape
(BigDecimalShape shape) bigIntegerShape
(BigIntegerShape shape) booleanShape
(BooleanShape shape) documentShape
(DocumentShape shape) doubleShape
(DoubleShape shape) floatShape
(FloatShape shape) protected abstract R
getDefault
(Shape shape) Returns a value for any unhandled shape.integerShape
(IntegerShape shape) memberShape
(MemberShape shape) operationShape
(OperationShape shape) resourceShape
(ResourceShape shape) serviceShape
(ServiceShape shape) shortShape
(ShortShape shape) stringShape
(StringShape shape) structureShape
(StructureShape shape) timestampShape
(TimestampShape shape) 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
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
getDefault
Returns a value for any unhandled shape.- Parameters:
shape
- Shape that is being visited.- Returns:
- Return value.
-
blobShape
- Specified by:
blobShape
in interfaceShapeVisitor<R>
-
booleanShape
- Specified by:
booleanShape
in interfaceShapeVisitor<R>
-
listShape
- Specified by:
listShape
in interfaceShapeVisitor<R>
-
byteShape
- Specified by:
byteShape
in interfaceShapeVisitor<R>
-
shortShape
- Specified by:
shortShape
in interfaceShapeVisitor<R>
-
integerShape
- Specified by:
integerShape
in interfaceShapeVisitor<R>
-
longShape
- Specified by:
longShape
in interfaceShapeVisitor<R>
-
floatShape
- Specified by:
floatShape
in interfaceShapeVisitor<R>
-
documentShape
- Specified by:
documentShape
in interfaceShapeVisitor<R>
-
doubleShape
- Specified by:
doubleShape
in interfaceShapeVisitor<R>
-
bigIntegerShape
- Specified by:
bigIntegerShape
in interfaceShapeVisitor<R>
-
bigDecimalShape
- Specified by:
bigDecimalShape
in interfaceShapeVisitor<R>
-
mapShape
- Specified by:
mapShape
in interfaceShapeVisitor<R>
-
operationShape
- Specified by:
operationShape
in interfaceShapeVisitor<R>
-
resourceShape
- Specified by:
resourceShape
in interfaceShapeVisitor<R>
-
serviceShape
- Specified by:
serviceShape
in interfaceShapeVisitor<R>
-
stringShape
- Specified by:
stringShape
in interfaceShapeVisitor<R>
-
structureShape
- Specified by:
structureShape
in interfaceShapeVisitor<R>
-
unionShape
- Specified by:
unionShape
in interfaceShapeVisitor<R>
-
memberShape
- Specified by:
memberShape
in interfaceShapeVisitor<R>
-
timestampShape
- Specified by:
timestampShape
in interfaceShapeVisitor<R>
-