orc.ast.extended.declaration.defn
Class DefnClause

java.lang.Object
  extended by orc.ast.extended.declaration.defn.Defn
      extended by orc.ast.extended.declaration.defn.DefnClause
All Implemented Interfaces:
Locatable, Located

public class DefnClause
extends Defn

A unit of syntax that encapsulates an expression definition. Definitions are scoped in the abstract syntax tree through a Declare containing a DefsDeclaration.

Author:
dkitchin

Field Summary
 Expression body
           
 java.util.List<Pattern> formals
           
 Type resultType
           
 
Fields inherited from class orc.ast.extended.declaration.defn.Defn
name
 
Constructor Summary
DefnClause(java.lang.String name, java.util.List<Pattern> formals, Expression body, Type resultType)
           
 
Method Summary
 void extend(AggregateDefn adef)
           
 java.lang.String toString()
           
 
Methods inherited from class orc.ast.extended.declaration.defn.Defn
getSourceLocation, setSourceLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

formals

public java.util.List<Pattern> formals

body

public Expression body

resultType

public Type resultType
Constructor Detail

DefnClause

public DefnClause(java.lang.String name,
                  java.util.List<Pattern> formals,
                  Expression body,
                  Type resultType)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

extend

public void extend(AggregateDefn adef)
Specified by:
extend in class Defn