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

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

public class AttributeExpr
extends ExprBase<ExprExecCtxt>
implements OptionalExpression

A path that uses a public field or getter/setter to resolve the path string.

Author:
olaf boede

Constructor Summary
AttributeExpr(NameWithModifier name)
           
AttributeExpr(NameWithModifier name, org.pm4j.core.util.reflection.BeanAttrAccessor accessor)
           
 
Method Summary
protected  void execAssignImpl(ExprExecCtxt ctxt, java.lang.Object value)
           
 java.lang.Object execImpl(ExprExecCtxt ctxt)
           
 boolean isOptional()
           
static AttributeExpr parse(ParseCtxt ctxt)
           
 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
 
Methods inherited from interface org.pm4j.core.pm.impl.expr.Expression
exec, execAssign
 

Constructor Detail

AttributeExpr

public AttributeExpr(NameWithModifier name,
                     org.pm4j.core.util.reflection.BeanAttrAccessor accessor)

AttributeExpr

public AttributeExpr(NameWithModifier name)
Method Detail

execImpl

public 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>

isOptional

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

toString

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

parse

public static AttributeExpr parse(ParseCtxt ctxt)