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.Default<R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbigDecimalShape(BigDecimalShape shape) bigIntegerShape(BigIntegerShape shape) booleanShape(BooleanShape shape) documentShape(DocumentShape shape) doubleShape(DoubleShape shape) floatShape(FloatShape shape) protected abstract RgetDefault(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)
-
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:
blobShapein interfaceShapeVisitor<R>
-
booleanShape
- Specified by:
booleanShapein interfaceShapeVisitor<R>
-
listShape
- Specified by:
listShapein interfaceShapeVisitor<R>
-
setShape
- Specified by:
setShapein interfaceShapeVisitor<R>
-
byteShape
- Specified by:
byteShapein interfaceShapeVisitor<R>
-
shortShape
- Specified by:
shortShapein interfaceShapeVisitor<R>
-
integerShape
- Specified by:
integerShapein interfaceShapeVisitor<R>
-
longShape
- Specified by:
longShapein interfaceShapeVisitor<R>
-
floatShape
- Specified by:
floatShapein interfaceShapeVisitor<R>
-
documentShape
- Specified by:
documentShapein interfaceShapeVisitor<R>
-
doubleShape
- Specified by:
doubleShapein interfaceShapeVisitor<R>
-
bigIntegerShape
- Specified by:
bigIntegerShapein interfaceShapeVisitor<R>
-
bigDecimalShape
- Specified by:
bigDecimalShapein interfaceShapeVisitor<R>
-
mapShape
- Specified by:
mapShapein interfaceShapeVisitor<R>
-
operationShape
- Specified by:
operationShapein interfaceShapeVisitor<R>
-
resourceShape
- Specified by:
resourceShapein interfaceShapeVisitor<R>
-
serviceShape
- Specified by:
serviceShapein interfaceShapeVisitor<R>
-
stringShape
- Specified by:
stringShapein interfaceShapeVisitor<R>
-
structureShape
- Specified by:
structureShapein interfaceShapeVisitor<R>
-
unionShape
- Specified by:
unionShapein interfaceShapeVisitor<R>
-
memberShape
- Specified by:
memberShapein interfaceShapeVisitor<R>
-
timestampShape
- Specified by:
timestampShapein interfaceShapeVisitor<R>
-