net.sourceforge.nrl.parser.ast.constraints
Interface IOperatorInvocation

All Superinterfaces:
IConstraint, IExpression, INRLAstNode

public interface IOperatorInvocation
extends IExpression

An operator invocation is an expression that makes use of an external undefined operator - mostly a scripted a programmed extension.


Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 int getNumParameters()
          Return the number of parameters passed in this invocation.
 IOperator getOperator()
          Return the operator.
 String getOperatorName()
          Return the name of the operator begin called.
 IExpression getParameter(int index)
          Return a parameter.
 
Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint
getNRLDataType, setNRLDataType
 
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 if the rule file has been resolved against an operator collection using INRLParser.resolveOperatorReferences(IRuleFile, IOperators[]).

Returns:
the operator

getOperatorName

String getOperatorName()
Return the name of the operator begin called. Never returns null.

Returns:
the name without any square brackets

getParameter

IExpression getParameter(int index)
Return a parameter. The parameter index must be between 0 and getNumParameters()-1, or a runtime exception will occur.

Parameters:
index - the index
Returns:
the parameter, will not be null if the index was in bounds

getNumParameters

int getNumParameters()
Return the number of parameters passed in this invocation.



Copyright © 2006-2010 Christian Nentwich and others