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

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

public class MethodCallExpr
extends ExprBase<ExprExecCtxt>
implements OptionalExpression

Invokes a method.

TODO: docu!

Author:
olaf boede

Method Summary
protected  java.lang.Object execImpl(ExprExecCtxt ctxt)
           
 boolean isOptional()
           
static MethodCallExpr parse(ParseCtxt ctxt)
          Parses a method call syntax strings such as: myMethod() or myMethod(parm1, param2).
 java.lang.String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface org.pm4j.core.pm.impl.expr.Expression
exec, execAssign
 

Method Detail

parse

public static MethodCallExpr parse(ParseCtxt ctxt)
Parses a method call syntax strings such as: myMethod() or myMethod(parm1, param2).

Parameters:
ctxt - The parse context with the current parse position.
Returns:
null if there was no method call found at the current parse position.
Throws:
ParseException - if the syntax of the method call is not ok. E.g. in case of a missing closing brace.

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

toString

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