Package com.wavefront.predicates
Class TemplateStringExpression
- java.lang.Object
-
- com.wavefront.predicates.TemplateStringExpression
-
- All Implemented Interfaces:
BaseExpression,StringExpression
public class TemplateStringExpression extends Object implements StringExpression
A string template rendered. Substitutes {{...}} placeholders with corresponding components; string literals are returned as is.- Author:
- vasily@wavefront.com
-
-
Constructor Summary
Constructors Constructor Description TemplateStringExpression(String template)
-
-
-
Constructor Detail
-
TemplateStringExpression
public TemplateStringExpression(String template)
-
-
Method Detail
-
getString
@Nonnull public String getString(@Nullable Object entity)
Description copied from interface:StringExpressionGet a string value.- Specified by:
getStringin interfaceStringExpression- Parameters:
entity- entity to get the value from.- Returns:
- string value
-
-