Class TracingSymbolProvider
java.lang.Object
software.amazon.smithy.codegen.core.trace.TracingSymbolProvider
- All Implemented Interfaces:
 SymbolProvider
Decorates a 
SymbolProvider with a TraceFile.Builder and adds a ShapeLink object
 to the builder on each call to toSymbol.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to create a TracingSymbolProvider instance. - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()Builder to create a TracingSymbolProvider instance.Builds and returns theTracingSymbolProvider'sTraceFile.Builder.toMemberName(MemberShape shape) Converts a member shape to a member/property name of a containing data structure.Converts a shape into a symbol by calling the toSymbol method of the SymbolProvider used to construct this TracingSymbolProvider. 
- 
Method Details
- 
builder
Builder to create a TracingSymbolProvider instance.- Returns:
 - Returns a new Builder.
 
 - 
buildTraceFile
Builds and returns theTracingSymbolProvider'sTraceFile.Builder.- Returns:
 - The 
TraceFilebuilt from thisTracingSymbolProvider'sTraceFile.Builder. 
 - 
toSymbol
Converts a shape into a symbol by calling the toSymbol method of the SymbolProvider used to construct this TracingSymbolProvider. Adds a list of ShapeLinks to the TracingSymbolProvider's TraceFile.Builder.- Specified by:
 toSymbolin interfaceSymbolProvider- Parameters:
 shape- Shape to convert to Symbol.- Returns:
 - Symbol created from Shape.
 
 - 
toMemberName
Description copied from interface:SymbolProviderConverts a member shape to a member/property name of a containing data structure.The default implementation will return the member name of the provided shape ID and should be overridden if necessary.
- Specified by:
 toMemberNamein interfaceSymbolProvider- Parameters:
 shape- Shape to convert.- Returns:
 - Returns the converted member name.
 
 
 -