Class MandatorySourceLocation
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.util.MandatorySourceLocation
-
- All Implemented Interfaces:
FromSourceLocation
- Direct Known Subclasses:
Endpoint,EndpointRuleSet,Expression,Identifier,Template
public abstract class MandatorySourceLocation extends java.lang.Object implements FromSourceLocation
Abstract class that mandates that all child classes provide a source location.
-
-
Constructor Summary
Constructors Constructor Description MandatorySourceLocation(FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceLocationgetSourceLocation()Gets the source location of a value.
-
-
-
Constructor Detail
-
MandatorySourceLocation
public MandatorySourceLocation(FromSourceLocation sourceLocation)
-
-
Method Detail
-
getSourceLocation
public SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
-