Package software.amazon.smithy.model
Interface FromSourceLocation
- All Known Subinterfaces:
Trait
- All Known Implementing Classes:
AbstractShapeBuilder,AbstractTrait,AddedDefaultTrait,AnnotationTrait,ArrayNode,AuthDefinitionTrait,AuthTrait,BigDecimalShape,BigDecimalShape.Builder,BigIntegerShape,BigIntegerShape.Builder,BlobShape,BlobShape.Builder,BooleanNode,BooleanShape,BooleanShape.Builder,BoxTrait,ByteShape,ByteShape.Builder,ClientOptionalTrait,CollectionShape,CollectionShape.Builder,CorsTrait,DefaultTrait,DeprecatedTrait,DocumentationTrait,DocumentShape,DocumentShape.Builder,DoubleShape,DoubleShape.Builder,DynamicTrait,EndpointTrait,EntityShape,EntityShape.Builder,EnumShape,EnumShape.Builder,EnumTrait,EnumValueTrait,ErrorTrait,EventHeaderTrait,EventPayloadTrait,ExamplesTrait,ExpectationNotMetException,ExternalDocumentationTrait,FloatShape,FloatShape.Builder,HostLabelTrait,HttpApiKeyAuthTrait,HttpBasicAuthTrait,HttpBearerAuthTrait,HttpChecksumRequiredTrait,HttpDigestAuthTrait,HttpErrorTrait,HttpHeaderTrait,HttpLabelTrait,HttpPayloadTrait,HttpPrefixHeadersTrait,HttpQueryParamsTrait,HttpQueryTrait,HttpResponseCodeTrait,HttpTrait,IdempotencyTokenTrait,IdempotentTrait,IdRefTrait,InputTrait,IntegerShape,IntegerShape.Builder,IntEnumShape,IntEnumShape.Builder,InternalTrait,JsonNameTrait,LengthTrait,ListShape,ListShape.Builder,LongShape,LongShape.Builder,MapShape,MapShape.Builder,MediaTypeTrait,MemberShape,MemberShape.Builder,MixinTrait,ModelSyntaxException,NestedPropertiesTrait,NoAuthTrait,Node,NodeDeserializationException,NoReplaceTrait,NotPropertyTrait,NullNode,NumberNode,NumberShape,ObjectNode,OperationShape,OperationShape.Builder,OptionalAuthTrait,OriginalShapeIdTrait,OutputTrait,PaginatedTrait,PatternTrait,PrivateTrait,PropertyTrait,ProtocolDefinitionTrait,RangeTrait,ReadonlyTrait,RecommendedTrait,ReferencesTrait,RequestCompressionTrait,RequiredTrait,RequiresLengthTrait,ResourceIdentifierTrait,ResourceShape,ResourceShape.Builder,RetryableTrait,SensitiveTrait,ServiceShape,ServiceShape.Builder,SetShape,SetShape.Builder,Shape,ShortShape,ShortShape.Builder,SimpleShape,SinceTrait,SourceException,SourceLocation,SparseTrait,StreamingTrait,StringListTrait,StringNode,StringShape,StringShape.Builder,StringTrait,StructureShape,StructureShape.Builder,SuppressTrait,SyntheticEnumTrait,TagsTrait,TimestampFormatTrait,TimestampShape,TimestampShape.Builder,TitleTrait,TraitDefinition,TraitValidatorsTrait,UnionShape,UnionShape.Builder,UniqueItemsTrait,UnitTypeTrait,UnstableTrait,ValidationEvent,XmlAttributeTrait,XmlFlattenedTrait,XmlNamespaceTrait,XmlNameTrait
public interface FromSourceLocation
A value that can be traced back to a
SourceLocation.-
Method Summary
Modifier and TypeMethodDescriptionstatic intCompares two FromSourceLocations.default SourceLocationGets the source location of a value.
-
Method Details
-
getSourceLocation
Gets the source location of a value.- Returns:
- Returns the source location of the value.
-
compare
Compares two FromSourceLocations.- Parameters:
s1- the first FromSourceLocation to compare.s2- the second FromSourceLocation to compare.- Returns:
- the value 0 if s1 == s2; a value less than 0 if s1 < s2; and a value greater than 0 if s1 > s2.
-