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

All Superinterfaces:
IConstraint, IExpression, INRLAstNode

public interface IFunctionalExpression
extends IExpression

An expression that uses a function to compute a result.

Abstract syntax reference: FunctionalExpression ::= sumOf ModelReference | numberOf ModelReference (uniqueby ModelReference)?


Nested Class Summary
static class IFunctionalExpression.Function
          Available functions
 
Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode
NEWLINE
 
Method Summary
 IFunctionalExpression.Function getFunction()
          Return the function identifier, one of the constants defined in this interface.
 List<IIdentifier> getParameters()
          Get the parameters.
 
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

getFunction

IFunctionalExpression.Function getFunction()
Return the function identifier, one of the constants defined in this interface.

Returns:
the function identifier

getParameters

List<IIdentifier> getParameters()
Get the parameters. The number and position of the parameters depends on the function id, see the documentation of the ID for more details.

Returns:
the parameters, all IIdentifier objects


Copyright © 2006-2010 Christian Nentwich and others