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>
CreatesShapeVisitorthat 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 RbigDecimalShape(BigDecimalShape shape)RbigIntegerShape(BigIntegerShape shape)RblobShape(BlobShape shape)RbooleanShape(BooleanShape shape)RbyteShape(ByteShape shape)RdocumentShape(DocumentShape shape)RdoubleShape(DoubleShape shape)RfloatShape(FloatShape shape)protected abstract RgetDefault(Shape shape)Returns a value for any unhandled shape.RintegerShape(IntegerShape shape)RlistShape(ListShape shape)RlongShape(LongShape shape)RmapShape(MapShape shape)RmemberShape(MemberShape shape)RoperationShape(OperationShape shape)RresourceShape(ResourceShape shape)RserviceShape(ServiceShape shape)RshortShape(ShortShape shape)RstringShape(StringShape shape)RstructureShape(StructureShape shape)RtimestampShape(TimestampShape shape)RunionShape(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:
blobShapein interfaceShapeVisitor<R>
-
booleanShape
public R booleanShape(BooleanShape shape)
- Specified by:
booleanShapein interfaceShapeVisitor<R>
-
listShape
public R listShape(ListShape shape)
- Specified by:
listShapein interfaceShapeVisitor<R>
-
byteShape
public R byteShape(ByteShape shape)
- Specified by:
byteShapein interfaceShapeVisitor<R>
-
shortShape
public R shortShape(ShortShape shape)
- Specified by:
shortShapein interfaceShapeVisitor<R>
-
integerShape
public R integerShape(IntegerShape shape)
- Specified by:
integerShapein interfaceShapeVisitor<R>
-
longShape
public R longShape(LongShape shape)
- Specified by:
longShapein interfaceShapeVisitor<R>
-
floatShape
public R floatShape(FloatShape shape)
- Specified by:
floatShapein interfaceShapeVisitor<R>
-
documentShape
public R documentShape(DocumentShape shape)
- Specified by:
documentShapein interfaceShapeVisitor<R>
-
doubleShape
public R doubleShape(DoubleShape shape)
- Specified by:
doubleShapein interfaceShapeVisitor<R>
-
bigIntegerShape
public R bigIntegerShape(BigIntegerShape shape)
- Specified by:
bigIntegerShapein interfaceShapeVisitor<R>
-
bigDecimalShape
public R bigDecimalShape(BigDecimalShape shape)
- Specified by:
bigDecimalShapein interfaceShapeVisitor<R>
-
mapShape
public R mapShape(MapShape shape)
- Specified by:
mapShapein interfaceShapeVisitor<R>
-
operationShape
public R operationShape(OperationShape shape)
- Specified by:
operationShapein interfaceShapeVisitor<R>
-
resourceShape
public R resourceShape(ResourceShape shape)
- Specified by:
resourceShapein interfaceShapeVisitor<R>
-
serviceShape
public R serviceShape(ServiceShape shape)
- Specified by:
serviceShapein interfaceShapeVisitor<R>
-
stringShape
public R stringShape(StringShape shape)
- Specified by:
stringShapein interfaceShapeVisitor<R>
-
structureShape
public R structureShape(StructureShape shape)
- Specified by:
structureShapein interfaceShapeVisitor<R>
-
unionShape
public R unionShape(UnionShape shape)
- Specified by:
unionShapein interfaceShapeVisitor<R>
-
memberShape
public R memberShape(MemberShape shape)
- Specified by:
memberShapein interfaceShapeVisitor<R>
-
timestampShape
public R timestampShape(TimestampShape shape)
- Specified by:
timestampShapein interfaceShapeVisitor<R>
-
-