public final class TracingSymbolProvider extends java.lang.Object implements SymbolProvider
SymbolProvider with a TraceFile.Builder and adds a ShapeLink object
to the builder on each call to toSymbol.| Modifier and Type | Class and Description |
|---|---|
static class |
TracingSymbolProvider.Builder
Builder to create a TracingSymbolProvider instance.
|
| Modifier and Type | Method and Description |
|---|---|
static TracingSymbolProvider.Builder |
builder()
Builder to create a TracingSymbolProvider instance.
|
TraceFile |
buildTraceFile()
Builds and returns the
TracingSymbolProvider's TraceFile.Builder. |
java.lang.String |
toMemberName(MemberShape shape)
Converts a member shape to a member/property name of a containing
data structure.
|
Symbol |
toSymbol(Shape shape)
Converts a shape into a symbol by calling the toSymbol method of the
SymbolProvider used to construct this TracingSymbolProvider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcachepublic static TracingSymbolProvider.Builder builder()
public TraceFile buildTraceFile()
TracingSymbolProvider's TraceFile.Builder.TraceFile built from this TracingSymbolProvider's TraceFile.Builder.public Symbol toSymbol(Shape shape)
toSymbol in interface SymbolProvidershape - Shape to convert to Symbol.public java.lang.String toMemberName(MemberShape shape)
SymbolProviderThe default implementation will return the member name of the provided shape ID and should be overridden if necessary.
toMemberName in interface SymbolProvidershape - Shape to convert.