com.groiss.ds
Class StringExpression
java.lang.Object
com.groiss.ds.StringExpression
public abstract class StringExpression
- extends java.lang.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
Method Summary |
java.lang.String |
parse(java.lang.String s)
Call this method to evaluate the expression. |
abstract java.lang.Object |
varSubstitute(java.lang.String s)
Abstract method for var substitution, should be implemented by subclasses. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringExpression
public StringExpression()
parse
public java.lang.String parse(java.lang.String s)
- Call this method to evaluate the expression.
- Parameters:
s
- the expression
- Returns:
- the evaluated expression.
varSubstitute
public abstract java.lang.Object varSubstitute(java.lang.String s)
- Abstract method for var substitution, should be implemented by subclasses.
- Parameters:
s
- the variable name
- Returns:
- the value
@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.