com.groiss.ds
Class StringExpression
java.lang.Object
com.groiss.ds.StringExpression
public abstract class StringExpression
- extends Object
An expression is parsed, the containing variables are substituted with values.
The caller calls the parse method with a string, the variables are handed over to
an abstract varSubstitute method. The expression has the following form:
{ any-char* "{" placeholder ["," ("date" | "datetime" | decimal-format-mask ) ] "}" any_char* }*
The decimal
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringExpression
public StringExpression()
parse
public String parse(String s)
- Call this method to evaluate the expression.
- Parameters:
s - the expression
- Returns:
- the evaluated expression.
varSubstitute
public abstract Object varSubstitute(String s)
- Abstract method for var substitution, should be implemented by subclasses.
- Parameters:
s - the variable name
- Returns:
- the value
@enterprise 8.0.10809 Copyright © 2001-2012 Groiss Informatics GmbH. All Rights Reserved.