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 StackTraceElements.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisStable()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:
getInternalSubstitutorin interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-
isStable
public boolean isStable()Description copied from interface:TemplateResolverStringSubstitutorA substitutor is stable if the replacement doesn't vary with the provided value. In such a case, value is always set tonull.- Specified by:
isStablein interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-
replace
- Specified by:
replacein interfaceTemplateResolverStringSubstitutor<StackTraceElement>
-