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

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

public class ThisExpr
extends ExprBase<ExprExecCtxt>
implements OptionalExpression

An expression that returns just the current value.

Author:
olaf boede

Field Summary
static ThisExpr INSTANCE
           
static java.lang.String THIS_KEYWORD
           
 
Constructor Summary
ThisExpr()
           
 
Method Summary
protected  java.lang.Object execImpl(ExprExecCtxt ctxt)
           
 boolean isOptional()
           
static ThisExpr parse(ParseCtxt ctxt)
           
 
Methods inherited from class org.pm4j.core.pm.impl.expr.ExprBase
exec, execAssign, execAssignImpl, getPathName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.pm4j.core.pm.impl.expr.Expression
exec, execAssign
 

Field Detail

INSTANCE

public static ThisExpr INSTANCE

THIS_KEYWORD

public static final java.lang.String THIS_KEYWORD
See Also:
Constant Field Values
Constructor Detail

ThisExpr

public ThisExpr()
Method Detail

execImpl

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

isOptional

public boolean isOptional()
Specified by:
isOptional in interface OptionalExpression

parse

public static ThisExpr parse(ParseCtxt ctxt)
Parameters:
ctxt - The information to parse.
Returns:
The ThisExpr instance if the string 'this' was read. Otherwise null.