org.pm4j.core.pm.impl.expr
Class PathExpressionChain

java.lang.Object
  extended by org.pm4j.core.pm.impl.expr.ExprBase<ExprExecCtxt>
      extended by org.pm4j.core.pm.impl.expr.PathExpressionChain
All Implemented Interfaces:
Expression

public class PathExpressionChain
extends ExprBase<ExprExecCtxt>


Constructor Summary
PathExpressionChain(java.util.List<OptionalExpression> exprChain)
           
 
Method Summary
protected  void execAssignImpl(ExprExecCtxt ctxt, java.lang.Object value)
           
protected  java.lang.Object execImpl(ExprExecCtxt ctxt)
           
static Expression parse(ParseCtxt ctxt)
           
static Expression parse(ParseCtxt ctxt, boolean isStartAttrAllowed)
           
static Expression parse(java.lang.String s, boolean isStartAttrAllowed)
           
 java.lang.String toString()
           
 
Methods inherited from class org.pm4j.core.pm.impl.expr.ExprBase
exec, execAssign, getPathName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PathExpressionChain

public PathExpressionChain(java.util.List<OptionalExpression> exprChain)
Method Detail

execImpl

protected java.lang.Object execImpl(ExprExecCtxt ctxt)
Specified by:
execImpl in class ExprBase<ExprExecCtxt>

execAssignImpl

protected void execAssignImpl(ExprExecCtxt ctxt,
                              java.lang.Object value)
Overrides:
execAssignImpl in class ExprBase<ExprExecCtxt>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

parse

public static Expression parse(java.lang.String s,
                               boolean isStartAttrAllowed)
Parameters:
s - The string to parse.
isStartAttrAllowed - Defines if the first expression part may address a field.

Is used to prevent initializaion loops for injected fields that use the name of a referenced variable.

Returns:
The parsed expression or null if there was an empty string to parse.

parse

public static Expression parse(ParseCtxt ctxt)

parse

public static Expression parse(ParseCtxt ctxt,
                               boolean isStartAttrAllowed)
Parameters:
ctxt - The current parse context (text and parse position).
isStartAttrAllowed - Defines if the first expression part may address a field.

Is used to prevent initialization loops for injected fields that use the name of a referenced variable.

Returns:
The parsed expression or null if there was an empty string to parse.