Interface FromSourceLocation

All Known Subinterfaces:
Trait
All Known Implementing Classes:
AbstractShapeBuilder, AbstractTrait, ActionPermissionDescriptionTrait, AddedDefaultTrait, AnnotationTrait, ApiKeySourceTrait, ArnReferenceTrait, ArnTrait, ArrayNode, AuthDefinitionTrait, AuthorizersTrait, AuthorizerTrait, AuthTrait, AwsJson1_0Trait, AwsJson1_1Trait, AwsProtocolTrait, AwsQueryCompatibleTrait, AwsQueryErrorTrait, AwsQueryTrait, BigDecimalShape, BigDecimalShape.Builder, BigIntegerShape, BigIntegerShape.Builder, BlobShape, BlobShape.Builder, BooleanEquals, BooleanNode, BooleanShape, BooleanShape.Builder, BoxTrait, ByteShape, ByteShape.Builder, CfnAdditionalIdentifierTrait, CfnDefaultValueTrait, CfnExcludePropertyTrait, CfnMutabilityTrait, CfnNameTrait, CfnResourceTrait, ChangedMetadata, ChangedShape, ClientContextParamsTrait, ClientDiscoveredEndpointTrait, ClientEndpointDiscoveryIdTrait, ClientEndpointDiscoveryTrait, ClientOptionalTrait, CognitoUserPoolsTrait, CollectionShape, CollectionShape.Builder, Condition, ConditionKeysTrait, ContextParamTrait, ControlPlaneTrait, CorsTrait, DataPlaneTrait, DataTrait, DefaultTrait, DefineConditionKeysTrait, DeprecatedTrait, DisableConditionKeyInferenceTrait, DocumentationTrait, DocumentShape, DocumentShape.Builder, DoubleShape, DoubleShape.Builder, DynamicTrait, Ec2QueryNameTrait, Ec2QueryTrait, Endpoint, Endpoint.Builder, EndpointRule, EndpointRuleSet, EndpointRuleSet.Builder, EndpointRuleSetTrait, EndpointTestCase, EndpointTestExpectation, EndpointTestOperationInput, EndpointTestsTrait, EndpointTrait, EntityShape, EntityShape.Builder, EnumShape, EnumShape.Builder, EnumTrait, EnumValueTrait, ErrorRule, ErrorTrait, EventHeaderTrait, EventPayloadTrait, ExamplesTrait, ExpectationNotMetException, ExpectedEndpoint, Expression, ExternalDocumentationTrait, FloatShape, FloatShape.Builder, Function, FunctionNode, FunctionNode.Builder, GetAttr, GetAttr.Builder, HostLabelTrait, HttpApiKeyAuthTrait, HttpBasicAuthTrait, HttpBearerAuthTrait, HttpChecksumRequiredTrait, HttpChecksumTrait, HttpDigestAuthTrait, HttpErrorTrait, HttpHeaderTrait, HttpLabelTrait, HttpMalformedRequestTestsTrait, HttpPayloadTrait, HttpPrefixHeadersTrait, HttpQueryParamsTrait, HttpQueryTrait, HttpRequestTestsTrait, HttpResponseCodeTrait, HttpResponseTestsTrait, HttpTrait, IamResourceTrait, IdempotencyTokenTrait, IdempotentTrait, Identifier, IdRefTrait, InputTrait, IntegerShape, IntegerShape.Builder, IntegrationTrait, IntEnumShape, IntEnumShape.Builder, InternalTrait, InvalidRulesException, IsSet, JsonNameTrait, LengthTrait, LibraryFunction, ListShape, ListShape.Builder, Literal, LongShape, LongShape.Builder, MandatorySourceLocation, MapShape, MapShape.Builder, MediaTypeTrait, MemberShape, MemberShape.Builder, MixinTrait, MockIntegrationTrait, ModelSyntaxException, MqttJsonTrait, NestedPropertiesTrait, Node, NodeDeserializationException, NoReplaceTrait, Not, NotPropertyTrait, NullNode, NumberNode, NumberShape, ObjectNode, OperationShape, OperationShape.Builder, OptionalAuthTrait, OriginalShapeIdTrait, OutputTrait, PaginatedTrait, Parameter, Parameter.Builder, Parameters, Parameters.Builder, Partition, Partition.Builder, PartitionOutputs, PartitionOutputs.Builder, Partitions, Partitions.Builder, PatternTrait, PrivateTrait, PropertyTrait, ProtocolDefinitionTrait, PublishTrait, RangeTrait, ReadonlyTrait, RecommendedTrait, Reference, ReferencesTrait, RegionOverride, RegionOverride.Builder, RequestValidatorTrait, RequiredActionsTrait, RequiredTrait, RequiresLengthTrait, ResourceIdentifierTrait, ResourceShape, ResourceShape.Builder, RestJson1Trait, RestXmlTrait, RetryableTrait, Rule, S3UnwrappedXmlOutputTrait, SensitiveTrait, ServiceShape, ServiceShape.Builder, ServiceTrait, SetShape, SetShape.Builder, Shape, ShortShape, ShortShape.Builder, SigV4Trait, SimpleShape, SinceTrait, SourceException, SourceLocation, SourceLocationTrackingBuilder, SparseTrait, StaticContextParamsTrait, StreamingTrait, StringEquals, StringListTrait, StringNode, StringShape, StringShape.Builder, StringTrait, StructureShape, StructureShape.Builder, SubscribeTrait, SupportedPrincipalTypesTrait, SuppressTrait, SyntheticEnumTrait, TagEnabledTrait, TaggableApiConfig, TaggableTrait, TagsTrait, Template, TimestampFormatTrait, TimestampShape, TimestampShape.Builder, TitleTrait, TopicLabelTrait, TraitDefinition, TreeRule, UnionShape, UnionShape.Builder, UniqueItemsTrait, UnitTypeTrait, UnsignedPayloadTrait, UnstableTrait, Value, Value.Array, Value.Bool, Value.Endpoint, Value.Endpoint.Builder, Value.Integer, Value.None, Value.Record, Value.String, WaitableTrait, XmlAttributeTrait, XmlFlattenedTrait, XmlNamespaceTrait, XmlNameTrait

public interface FromSourceLocation
A value that can be traced back to a SourceLocation.
  • Method Details

    • getSourceLocation

      default SourceLocation getSourceLocation()
      Gets the source location of a value.
      Returns:
      Returns the source location of the value.
    • compare

      static int compare(FromSourceLocation s1, FromSourceLocation s2)
      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.