Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

oracle.apps.fnd.appltest.diagfwk.engine
Interface ExpressionEvaluator

All Known Implementing Classes:
ExpressionEvaluatorImpl

public interface ExpressionEvaluator

Models APIs for evaluating expressions supported by the diagnostics tests metadata definition.

Since:
release specific (what release of product did this appear in)
Version:
$Header: ExpressionEvaluator.java 22-oct-2007.11:51:58 ppradhan Exp $
Author:
ppradhan

Method Summary
 boolean isSingleToken(java.lang.String pExpr)
          Checks if the given expression is just a single token.
 java.util.List<java.lang.String> listTokens(java.lang.String pExpr)
          Lists the tokens in the given expression.
 java.lang.String replaceToken(java.lang.String pExpr, java.lang.String pToken, java.lang.String pTokenValue)
          Replaces the given token in the given expression with the given value.
 

Method Detail

listTokens

java.util.List<java.lang.String> listTokens(java.lang.String pExpr)
Lists the tokens in the given expression. If the expression does not contain any tokens, an empty list is returned.

Parameters:
pExpr - - a string that can be evaluated as an expression with references to other tokens.
Returns:
list of tokens expressed in the given expression

replaceToken

java.lang.String replaceToken(java.lang.String pExpr,
                              java.lang.String pToken,
                              java.lang.String pTokenValue)
Replaces the given token in the given expression with the given value.

Parameters:
pExpr - - a string that can be evaluated as an expression with references to other tokens
pToken - - a token within the string
pTokenValue - - value for the token to be substituted.
Returns:
- returns resulting expression with the token substituted.

isSingleToken

boolean isSingleToken(java.lang.String pExpr)
Checks if the given expression is just a single token. For the expression to be single token it must contain a single token in the form of ${[token]} and nothing else.

Parameters:
pExpr - expression to check
Returns:
true if the given expression is just a single token. false otherwise.

Oracle Fusion Middleware extensions for Logging and Diagnostics
11g Release 1 (11.1.2)

E22565-02

Copyright © 2011 Oracle. All Rights Reserved.