Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl
Class ExpressionEvaluatorImpl

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.ExpressionEvaluatorImpl
All Implemented Interfaces:
ExpressionEvaluator

public class ExpressionEvaluatorImpl
extends java.lang.Object
implements ExpressionEvaluator

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

Field Summary
static java.lang.String EXP_END
          Expression end token
static java.lang.String EXP_START
          Expression start token
static java.lang.String PATTERN_EXP
          Pattern - expression
 
Constructor Summary
ExpressionEvaluatorImpl()
           
 
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)
          Pattern - for expression end token
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN_EXP

public static final java.lang.String PATTERN_EXP
Pattern - expression

See Also:
Constant Field Values

EXP_START

public static final java.lang.String EXP_START
Expression start token

See Also:
Constant Field Values

EXP_END

public static final java.lang.String EXP_END
Expression end token

See Also:
Constant Field Values
Constructor Detail

ExpressionEvaluatorImpl

public ExpressionEvaluatorImpl()
Method Detail

listTokens

public java.util.List<java.lang.String> listTokens(java.lang.String pExpr)
Pattern - for expression end token

Specified by:
listTokens in interface ExpressionEvaluator
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

public java.lang.String replaceToken(java.lang.String pExpr,
                                     java.lang.String pToken,
                                     java.lang.String pTokenValue)
Description copied from interface: ExpressionEvaluator
Replaces the given token in the given expression with the given value.

Specified by:
replaceToken in interface ExpressionEvaluator
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

public boolean isSingleToken(java.lang.String pExpr)
Description copied from interface: ExpressionEvaluator
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.

Specified by:
isSingleToken in interface ExpressionEvaluator
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 Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.