Class StackTraceElementResolverStringSubstitutor
java.lang.Object
org.apache.logging.log4j.layout.template.json.resolver.StackTraceElementResolverStringSubstitutor
- All Implemented Interfaces:
TemplateResolverStringSubstitutor<StackTraceElement>
final class StackTraceElementResolverStringSubstitutor
extends Object
implements TemplateResolverStringSubstitutor<StackTraceElement>
TemplateResolverStringSubstitutor
specialized for StackTraceElement
s.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isStable()
A substitutor is stable if the replacement doesn't vary with the provided value.replace
(StackTraceElement ignored, String source)
-
Field Details
-
substitutor
-
-
Constructor Details
-
StackTraceElementResolverStringSubstitutor
StackTraceElementResolverStringSubstitutor(StrSubstitutor substitutor)
-
-
Method Details
-
getInternalSubstitutor
- Specified by:
getInternalSubstitutor
in interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-
isStable
public boolean isStable()Description copied from interface:TemplateResolverStringSubstitutor
A substitutor is stable if the replacement doesn't vary with the provided value. In such a case, value is always set tonull
.- Specified by:
isStable
in interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-
replace
- Specified by:
replace
in interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-