public static final class SourceLocation.Builder extends Object
SourceLocation
objects.Modifier and Type | Method and Description |
---|---|
SourceLocation |
build() |
SourceLocation.Builder |
setFile(String file)
Sets the source file name.
|
SourceLocation.Builder |
setFunction(String function)
Sets the human-readable name of the function or method being invoked, with optional context
such as the class or package name.
|
SourceLocation.Builder |
setLine(Long line)
Sets the line within the source file.
|
@CanIgnoreReturnValue public SourceLocation.Builder setFile(String file)
@CanIgnoreReturnValue public SourceLocation.Builder setLine(Long line)
@CanIgnoreReturnValue public SourceLocation.Builder setFunction(String function)
public SourceLocation build()
Copyright © 2023 Google LLC. All rights reserved.