jfun.jaskell.ast
Class Alternative

java.lang.Object
  extended byjfun.jaskell.ast.Alternative
All Implemented Interfaces:
java.io.Serializable

public class Alternative
extends java.lang.Object
implements java.io.Serializable

An Alternative is one alternative function definition. A function definition is composed of 1 or more alternatives where each one corresponds to a pattern match case.

Author:
Ben Yu Jan 17, 2005

Zephyr Business Solutions Corp.s.

See Also:
Serialized Form

Constructor Summary
Alternative(Param[] params, Expr body)
           
 
Method Summary
 Expr getBody()
          Get the function body.
 Param[] getParams()
          Get the parameters of this alternative.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Alternative

public Alternative(Param[] params,
                   Expr body)
Method Detail

getBody

public Expr getBody()
Get the function body.

Returns:
Returns the body.

getParams

public Param[] getParams()
Get the parameters of this alternative.

Returns:
Returns the params.

toString

public java.lang.String toString()