public abstract class StringExpression extends Object
Constructor and Description |
---|
StringExpression() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendIfNotEmpty(StringBuilder result,
Object val)
appends the given value. if the value is null/empty and the current result ends with a blank,
this blank is removed to avoid accumulating blanks for optional values
|
String |
parse(String s)
Call this method to evaluate the expression.
|
abstract Object |
varSubstitute(String s)
Abstract method for var substitution, should be implemented by subclasses.
|
protected final void appendIfNotEmpty(StringBuilder result, Object val)
result
- val
- public String parse(String s)
s
- the expression@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.