org.millscript.millscript.syntax
Class FunctionHeader

java.lang.Object
  extended by org.millscript.millscript.syntax.FunctionHeader

public final class FunctionHeader
extends java.lang.Object

This class represents a function header. The function header is the signature of a function, made up of the function name and it's argument list. e.g. somefunc( arg1, arg2 ).


Constructor Summary
FunctionHeader()
           
 
Method Summary
 org.millscript.commons.util.EList<NameExpr> getArglist()
          Returns a list holding the arguments for this function header.
 NameExpr getName()
          Returns the function name expression for this header.
 java.lang.String getSymbol()
          Returns the symbol for this function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionHeader

public FunctionHeader()
Method Detail

getArglist

public org.millscript.commons.util.EList<NameExpr> getArglist()
Returns a list holding the arguments for this function header.

Returns:
a list holding the arguments for this function header.

getName

public NameExpr getName()
Returns the function name expression for this header.

Returns:
the NameExpr for the function name

getSymbol

public java.lang.String getSymbol()
Returns the symbol for this function. It is possible to declare annonymous functions, in which case their symbol will be "lambda".

Returns:
a String containing the function name, or "lambda" if it doesn't have one.


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.