net.sourceforge.nrl.parser.ast.action
Interface IOperatorAction

All Superinterfaces:
IAction, INRLAstNode, ISimpleAction

public interface IOperatorAction
extends ISimpleAction

An action that invokes an externally defined operator. This follows the syntax [opname] or [opname] parameter... in the rule file.

TODO this is currently missing operator resolution against definition files.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IOperator getOperator()
          Return the operator.
 String getOperatorName()
          Return the operator name of the operator being called.
 List<IExpression> getParameters()
          Return the list of parameters, which are IExpression objects.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
accept, dump, getColumn, getLine, getUserData, setUserData
 

Method Detail

getOperator

IOperator getOperator()
Return the operator. This only returns a value once the AST has been resolved against an operator definition file, using the INRLParser.resolveOperatorReferences(net.sourceforge.nrl.parser.ast.IRuleFile, net.sourceforge.nrl.parser.operators.IOperators[]) method.

Returns:
the operator

getOperatorName

String getOperatorName()
Return the operator name of the operator being called.

Returns:
the name

getParameters

List<IExpression> getParameters()
Return the list of parameters, which are IExpression objects.

Returns:
the parameters


Copyright © 2006-2010 Christian Nentwich and others