orc.ast.extended.declaration.defn
Class DefnClause
java.lang.Object
orc.ast.extended.declaration.defn.Defn
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
Fields inherited from class orc.ast.extended.declaration.defn.Defn |
name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
formals
public java.util.List<Pattern> formals
body
public Expression body
resultType
public Type resultType
DefnClause
public DefnClause(java.lang.String name,
java.util.List<Pattern> formals,
Expression body,
Type resultType)
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